Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
AirspeedSdp3x::pressure_offset
float pressure_offset
Offset in Pascal.
Definition: airspeed_sdp3x.h:36
AirspeedSdp3x::airspeed_scale
float airspeed_scale
Quadratic scale factor to convert (differential) pressure to airspeed.
Definition: airspeed_sdp3x.h:34
sdp3x_event
void sdp3x_event(void)
Definition: airspeed_sdp3x.c:198
sdp3x_init
void sdp3x_init(void)
Definition: airspeed_sdp3x.c:153
AirspeedSdp3x::sync_send
bool sync_send
Flag to enable sending every new measurement via telemetry for debugging purpose.
Definition: airspeed_sdp3x.h:38
AirspeedSdp3x::initialized
bool initialized
init flag
Definition: airspeed_sdp3x.h:39
sdp3x_periodic
void sdp3x_periodic(void)
Definition: airspeed_sdp3x.c:177
AirspeedSdp3x::pressure_scale
float pressure_scale
Scaling factor from raw measurement to Pascal.
Definition: airspeed_sdp3x.h:35
AirspeedSdp3x::airspeed
float airspeed
Airspeed in m/s estimated from (differential) pressure.
Definition: airspeed_sdp3x.h:33
AirspeedSdp3x::pressure
float pressure
(differential) pressure in Pascal
Definition: airspeed_sdp3x.h:31
std.h
AirspeedSdp3x::autoset_offset
bool autoset_offset
Set offset value from current filtered value.
Definition: airspeed_sdp3x.h:37
AirspeedSdp3x
Definition: airspeed_sdp3x.h:30
AirspeedSdp3x::temperature
float temperature
Temperature in deg Celcius.
Definition: airspeed_sdp3x.h:32
sdp3x
struct AirspeedSdp3x sdp3x
Definition: airspeed_sdp3x.c:115