Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00039