Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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  if (gps.fix == GPS_FIX_3D) { \
17  gps.last_fix_time = sys_time.nb_sec; \
18  } \
19  _sol_available_callback(); \
20  gps_available = FALSE; \
21  } \
22  }
23 
24 #endif /* GPS_SIM_H */
bool_t gps_available
Definition: gps_sim.c:24
void gps_impl_init(void)
Definition: gps_mtk.c:106