6 #include <cfe/gpstypes.h> 7 #include <cfe-tables/tables.h> 9 #define TIME_NA (struct timeval){0, 0} 10 #define ALTITUDE_NA (alt_t)(ALT_REAL_MIN) 11 #define ACCURACY_NA (acc_t)(-1) 13 #define gps_table_get_num_records(x) table_get_num_records(x) 14 #define gps_table_free(x) table_free(x) 27 #define GPS_EXTENSION_NO_VALUE '-' 71 INIT_TABLE_TYPE_DEF(gps)
72 rec_t
gps_table_store(table_t *t,
struct timeval *time, lat_t lat, lng_t lng, alt_t alt, acc_t acc);
73 rec_t
gps_table_store_pos(table_t *t, rec_t pos,
struct timeval *time, lat_t lat, lng_t lng, alt_t alt, acc_t acc);
rec_t gps_table_get_record_by_time(const table_t *t, struct timeval *time)
rec_t gps_table_store(table_t *t, struct timeval *time, lat_t lat, lng_t lng, alt_t alt, acc_t acc)
rec_t gps_table_set_time_by_record(const table_t *t, rec_t i, struct timeval *time)
int8_t gps_table_set_extension_value(const table_t *t, rec_t i, gps_ext_type_t type, float value)
float gps_table_get_extension_value(const table_t *t, rec_t i, gps_ext_type_t type)
alt_t gps_table_get_altitude_by_record(const table_t *t, rec_t i)
void gps_table_update_distance(const table_t *t, rec_t i)
rec_t gps_table_get_record_by_latlng(const table_t *t, lat_t lat, lng_t lng)
rec_t gps_table_set_altitude_by_record(const table_t *t, rec_t i, alt_t alt)
acc_t gps_table_get_accuracy_by_record(const table_t *t, rec_t i)
lat_t gps_table_get_latitude_by_time(const table_t *t, struct timeval *time)
rec_t gps_table_set_latitude_by_record(const table_t *t, rec_t i, lat_t lat)
int8_t gps_table_remove_extension(const table_t *t, rec_t i, gps_ext_type_t type)
rec_t gps_table_store_pos(table_t *t, rec_t pos, struct timeval *time, lat_t lat, lng_t lng, alt_t alt, acc_t acc)
long double gps_table_get_distance_by_record(const table_t *t, rec_t i)
struct timeval gps_table_get_time_by_record(const table_t *t, rec_t i)
rec_t gps_table_get_record_by_time_with_start_point(const table_t *t, struct timeval *time, rec_t i)
rec_t gps_table_set_longitude_by_record(const table_t *t, rec_t i, lng_t lng)
lng_t gps_table_get_longitude_by_record(const table_t *t, rec_t i)
lat_t gps_table_get_latitude_by_record(const table_t *t, rec_t i)
lng_t gps_table_get_longitude_by_time(const table_t *t, struct timeval *time)
alt_t gps_table_get_altitude_by_time(const table_t *t, struct timeval *time)