Defines | Functions
ephemeris.c File Reference
#include "linear_algebra.h"
#include "ephemeris.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for ephemeris.c:

Go to the source code of this file.

Defines

#define NAV_GM   3.986005e14
#define NAV_OMEGAE_DOT   7.2921151467e-005

Functions

int calc_sat_pos (double pos[3], double vel[3], double *clock_err, double *clock_rate_err, const ephemeris_t *ephemeris, gps_time_t tot)
u8 ephemeris_good (ephemeris_t eph, gps_time_t t)
double predict_range (double rx_pos[3], gps_time_t tot, ephemeris_t *ephemeris)

Define Documentation

#define NAV_GM   3.986005e14

Definition at line 20 of file ephemeris.c.

#define NAV_OMEGAE_DOT   7.2921151467e-005

Definition at line 19 of file ephemeris.c.


Function Documentation

int calc_sat_pos ( double  pos[3],
double  vel[3],
double *  clock_err,
double *  clock_rate_err,
const ephemeris_t ephemeris,
gps_time_t  tot 
)

Definition at line 22 of file ephemeris.c.

Do we have an ephemeris for this PRN? This should actually be more than just the "valid" flag. When we write an is_usable() function, lets use that instead of just es[prn].valid.

Parameters:
prnThe prn we want to check.
Returns:
1 if the ephemeris is valid and not too old. 0 otherwise.

Definition at line 174 of file ephemeris.c.

double predict_range ( double  rx_pos[3],
gps_time_t  tot,
ephemeris_t ephemeris 
)

Definition at line 150 of file ephemeris.c.



swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:56:52