Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_sim.h
Go to the documentation of this file.
1 #ifndef GPS_SIM_H
2 #define GPS_SIM_H
3 
4 #include "std.h"
5 
6 #define GPS_NB_CHANNELS 16
7 
8 extern bool_t gps_available;
9 
10 //extern void gps_feed_values(double utm_north, double utm_east, double utm_alt, double gspeed, double course, double climb);
11 
12 extern void gps_impl_init(void);
13 
14 #define GpsEvent(_sol_available_callback) { \
15  if (gps_available) { \
16  gps.last_msg_ticks = sys_time.nb_sec_rem; \
17  gps.last_msg_time = sys_time.nb_sec; \
18  if (gps.fix == GPS_FIX_3D) { \
19  gps.last_3dfix_ticks = sys_time.nb_sec_rem; \
20  gps.last_3dfix_time = sys_time.nb_sec; \
21  } \
22  _sol_available_callback(); \
23  gps_available = FALSE; \
24  } \
25  }
26 
27 #endif /* GPS_SIM_H */
bool_t gps_available
Is set to TRUE when a new REMOTE_GPS packet is received and parsed.
Definition: gps_datalink.c:32
void gps_impl_init(void)
GPS initialization.
Definition: gps_ardrone2.c:38