sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GPS.h
Go to the documentation of this file.
1 #ifndef GPS_H_
2 #define GPS_H_
3 
4 //Function prototypes for GPS frame parsing
5 bool GPS_newFrame(uint8_t c);
6 extern uint8_t GPS_Frame; // a valid GPS_Frame was detected, and data is ready for nav computation
7 
8 extern int32_t wrap_18000(int32_t ang);
9 
10 void GPS_set_pids(void);
11 void GPS_SerialInit(void);
12 uint8_t GPS_Compute(void);
13 void GPS_reset_home_position(void);
14 void GPS_set_next_wp(int32_t* lat_to, int32_t* lon_to, int32_t* lat_from, int32_t* lon_from);
15 void GPS_reset_nav(void);
16 
17 int32_t get_altitude_error();
18 void clear_new_altitude();
19 void force_new_altitude(int32_t _new_alt);
20 void set_new_altitude(int32_t _new_alt);
21 int32_t get_new_altitude();
22 void abort_mission(unsigned char error_code);
23 void GPS_adjust_heading();
24 void init_RTH(void);
25 void check_land(void);
26 
27 #if defined(I2C_GPS)
28 uint8_t GPS_NewData(void);
29 #endif
30 
31 extern uint32_t wp_distance;
32 extern int32_t target_bearing;
33 #endif /* GPS_H_ */
void GPS_reset_nav(void)
void check_land(void)
int32_t target_bearing
void GPS_SerialInit(void)
void set_new_altitude(int32_t _new_alt)
void GPS_adjust_heading()
uint8_t GPS_Frame
bool GPS_newFrame(uint8_t c)
void clear_new_altitude()
int32_t wrap_18000(int32_t ang)
uint32_t wp_distance
void init_RTH(void)
uint8_t GPS_Compute(void)
void force_new_altitude(int32_t _new_alt)
int32_t get_new_altitude()
void abort_mission(unsigned char error_code)
void GPS_set_next_wp(int32_t *lat_to, int32_t *lon_to, int32_t *lat_from, int32_t *lon_from)
void GPS_reset_home_position(void)
void GPS_set_pids(void)
int32_t get_altitude_error()