Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
sensors_hitl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Gautier Hattenberger <gautier.hattenberger@enac.fr>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef SENSORS_HITL_H
22 #define SENSORS_HITL_H
23 
24 #include "std.h"
25 
26 #ifndef PRIMARY_GPS
27 #define PRIMARY_GPS GPS_SIM
28 #endif
29 
30 extern bool gps_has_fix;
31 
32 extern void sensors_hitl_init(void);
33 extern void sensors_hitl_periodic(void);
34 extern void sensors_hitl_event(void);
35 extern void sensors_hitl_parse_HITL_IMU(uint8_t *buf);
36 extern void sensors_hitl_parse_HITL_GPS(uint8_t *buf);
38 
39 // dummy definition for compilation
40 extern void imu_feed_gyro_accel(void);
41 extern void imu_feed_mag(void);
42 extern void gps_feed_value(void);
43 
44 #endif /* SENSORS_HITL_H */
45 
void imu_feed_mag(void)
Definition: imu_nps.c:76
void sensors_hitl_event(void)
Definition: sensors_hitl.c:214
void sensors_hitl_periodic(void)
Definition: sensors_hitl.c:89
void imu_feed_gyro_accel(void)
Definition: imu_nps.c:65
void gps_feed_value(void)
Definition: gps_sim_nps.c:32
bool gps_has_fix
Definition: gps_sim_nps.c:30
void sensors_hitl_parse_HITL_AIR_DATA(uint8_t *buf)
Definition: sensors_hitl.c:191
void sensors_hitl_parse_HITL_GPS(uint8_t *buf)
Definition: sensors_hitl.c:124
void sensors_hitl_parse_HITL_IMU(uint8_t *buf)
Definition: sensors_hitl.c:100
void sensors_hitl_init(void)
Definition: sensors_hitl.c:52
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98