Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
airspeed_uavcan.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Freek van Tienen <freek.v.tienen@gmail.com>
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, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
26 #ifndef AIRSPEED_UAVCAN_H
27 #define AIRSPEED_UAVCAN_H
28 
29 #include "std.h"
30 
31 /* Airspeed UAVCAN structure */
33  float diff_p;
34  float temperature;
35 
36  float diff_p_offset;
37  float diff_p_scale;
38 };
40 
41 /* External functions */
42 extern void airspeed_uavcan_init(void);
43 extern void airspeed_uavcan_autoset_offset(bool set);
44 
45 #endif /* AIRSPEED_UAVCAN_H */
float temperature
Temperature in Celsius.
void airspeed_uavcan_autoset_offset(bool set)
struct airspeed_uavcan_t airspeed_uavcan
float diff_p_offset
Differential pressure offset.
float diff_p
Differential pressure.
float diff_p_scale
Differential pressure scale.
void airspeed_uavcan_init(void)