ephemeris.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 Swift Navigation Inc.
00003  * Contact: Henry Hallam <henry@swift-nav.com>
00004  *
00005  * This source is subject to the license found in the file 'LICENSE' which must
00006  * be be distributed together with this source. All other rights reserved.
00007  *
00008  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00009  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
00010  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00011  */
00012 
00013 #ifndef LIBSWIFTNAV_EPHEMERIS_H
00014 #define LIBSWIFTNAV_EPHEMERIS_H
00015 
00016 #include "gpstime.h"
00017 #include "common.h"
00018 
00019 typedef struct {
00020   double tgd;
00021   double crs, crc, cuc, cus, cic, cis;
00022   double dn, m0, ecc, sqrta, omega0, omegadot, w, inc, inc_dot;
00023   double af0, af1, af2;
00024   gps_time_t toe, toc;
00025   u8 valid;
00026   u8 healthy;
00027 } ephemeris_t;
00028 
00029 int calc_sat_pos(double pos[3], double vel[3],
00030                  double *clock_err, double *clock_rate_err,
00031                  const ephemeris_t *ephemeris,
00032                  gps_time_t tot);
00033 
00034 double predict_range(double rx_pos[3],
00035                      gps_time_t tot,
00036                      ephemeris_t *ephemeris);
00037 
00038 #endif /* LIBSWIFTNAV_EPHEMERIS_H */
00039 


enu
Author(s): Mike Purvis
autogenerated on Fri Jan 3 2014 11:21:07