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   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 /* LIBSWIFTNAV_EPHEMERIS_H */
00043 


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:50