Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef LIBSWIFTNAV_ALMANAC_H
00014 #define LIBSWIFTNAV_ALMANAC_H
00015
00016 #include "common.h"
00017 #include "almanac.h"
00018
00023 typedef struct {
00024 double ecc;
00025 double toa;
00026 double inc;
00027 double rora;
00028 double a;
00029 double raaw;
00030 double argp;
00031 double ma;
00032 double af0;
00033 double af1;
00034 u16 week;
00035 u8 prn;
00036 u8 healthy;
00037 u8 valid;
00038 } almanac_t;
00039
00042 void calc_sat_state_almanac(almanac_t* alm, double t, s16 week,
00043 double pos[3], double vel[3]);
00044 void calc_sat_az_el_almanac(almanac_t* alm, double t, s16 week,
00045 double ref[3], double* az, double* el);
00046 double calc_sat_doppler_almanac(almanac_t* alm, double t, s16 week,
00047 double ref[3]);
00048
00049 #endif