Files
@ 677c51754ccf
Branch filter:
Location: FeatherHAB/wsprhab/inc/gps.h - annotation
677c51754ccf
629 B
text/plain
Refactor GPS code
0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 677c51754ccf dd3b59fcb7a7 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf 677c51754ccf ddd34459834e c1b1dfc6c2f4 c1b1dfc6c2f4 677c51754ccf c1b1dfc6c2f4 c1b1dfc6c2f4 c1b1dfc6c2f4 0d9900312165 0d9900312165 0d9900312165 c1b1dfc6c2f4 c1b1dfc6c2f4 dd3b59fcb7a7 c1b1dfc6c2f4 677c51754ccf 0d9900312165 0d9900312165 | #ifndef GPS_H_
#define GPS_H_
#include <stdint.h>
typedef struct _gps_data
{
int32_t pdop;
int32_t sats_in_solution;
uint32_t speed;
//! int32_t heading;
int32_t latitude;
int32_t longitude;
int32_t altitude;
uint8_t month;
uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;
uint8_t valid;
uint8_t fixtype;
} gps_data_t;
void gps_init();
void gps_update_data(void);
uint8_t gps_check_nav(void);
void gps_poweron(void);
void gps_poweroff(void);
void gps_acquirefix(void);
uint8_t gps_getstate(void);
gps_data_t* gps_getdata(void);
#endif /* GPS_H_ */
|