Paparazzi UAS  v5.15_devel-113-g1b57ff1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_sdp3x.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 
25 #ifndef AIRSPEED_SDP3X_H
26 #define AIRSPEED_SDP3X_H
27 
28 #include "std.h"
29 
30 struct AirspeedSdp3x {
31  float pressure;
32  float temperature;
33  float airspeed;
38  bool sync_send;
39  bool initialized;
40 };
41 
42 extern struct AirspeedSdp3x sdp3x;
43 
44 extern void sdp3x_init(void);
45 extern void sdp3x_periodic(void);
46 extern void sdp3x_event(void);
47 
48 #endif
bool initialized
init flag
bool sync_send
Flag to enable sending every new measurement via telemetry for debugging purpose. ...
float temperature
Temperature in deg Celcius.
float airspeed
Airspeed in m/s estimated from (differential) pressure.
void sdp3x_periodic(void)
float pressure_offset
Offset in Pascal.
float pressure
(differential) pressure in Pascal
float airspeed_scale
Quadratic scale factor to convert (differential) pressure to airspeed.
struct AirspeedSdp3x sdp3x
float pressure_scale
Scaling factor from raw measurement to Pascal.
void sdp3x_event(void)
void sdp3x_init(void)
bool autoset_offset
Set offset value from current filtered value.