Open Storm
gps.h
Go to the documentation of this file.
1 
9 #ifndef GPS_H
10 #define GPS_H
11 #include <project.h>
12 
22 uint8 modem_gps_power_toggle(uint8 gps_power_on);
23 
47 uint8 modem_get_gps_position(float *lat, float *lon, float *hdop,
48  float *altitude, uint8 *gps_fix, float *cog,
49  float *spkm, float *spkn, uint8 *nsat, uint8 min_satellites, uint8 max_tries);
50 
74 uint8 run_gps_routine(int *gps_trigger, float *lat, float *lon, float *hdop,
75  float *altitude, uint8 *gps_fix, float *cog,
76  float *spkm, float *spkn, uint8 *nsat, uint8 min_satellites, uint8 max_tries);
77 
92 uint8 zip_gps(char *labels[], float readings[], uint8 *array_ix, int *gps_trigger, uint8 min_satellites, uint8 max_tries, uint8 max_size);
93 
94 
95 #endif
96 /* [] END OF FILE */
uint8 run_gps_routine(int *gps_trigger, float *lat, float *lon, float *hdop, float *altitude, uint8 *gps_fix, float *cog, float *spkm, float *spkn, uint8 *nsat, uint8 min_satellites, uint8 max_tries)
Runs GPS routine to retrieve GPS position.
Definition: gps.c:62
uint8 modem_get_gps_position(float *lat, float *lon, float *hdop, float *altitude, uint8 *gps_fix, float *cog, float *spkm, float *spkn, uint8 *nsat, uint8 min_satellites, uint8 max_tries)
Retrieves the current GPS position by attempting to connect to the GPS network.
Definition: gps.c:42
uint8 zip_gps(char *labels[], float readings[], uint8 *array_ix, int *gps_trigger, uint8 min_satellites, uint8 max_tries, uint8 max_size)
Takes a string array of labels and float array of values and pairs the corresponding values...
Definition: gps.c:92
uint8 modem_gps_power_toggle(uint8 gps_power_on)
Toggle power to the GPS module.
Definition: gps.c:18