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 u8 prn;
00028 } ephemeris_t;
00029
00030
00031 int calc_sat_pos(double pos[3], double vel[3],
00032 double *clock_err, double *clock_rate_err,
00033 const ephemeris_t *ephemeris,
00034 gps_time_t tot);
00035
00036 double predict_range(double rx_pos[3],
00037 gps_time_t tot,
00038 ephemeris_t *ephemeris);
00039
00040 u8 ephemeris_good(ephemeris_t eph, gps_time_t t);
00041
00042 #endif
00043