Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_sim_nps.h
Go to the documentation of this file.
1 #ifndef GPS_SIM_NPS_H
2 #define GPS_SIM_NPS_H
3 
4 #include "nps_sensors.h"
5 
6 #define GPS_NB_CHANNELS 16
7 
8 extern bool_t gps_available;
9 
10 extern void gps_feed_value();
11 
12 extern void gps_impl_init();
13 
14 #define GpsEvent(_sol_available_callback) { \
15  if (gps_available) { \
16  if (gps.fix == GPS_FIX_3D) \
17  gps.last_fix_time = sys_time.nb_sec; \
18  _sol_available_callback(); \
19  gps_available = FALSE; \
20  } \
21  }
22 
23 #endif /* GPS_SIM_NPS_H */
void gps_impl_init()
Definition: gps_ardrone2.c:34
void gps_feed_value()
Definition: gps_sim_nps.c:27
bool_t gps_available
Definition: gps_sim.c:24