Paparazzi UAS v7.0_unstable
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
42
43extern struct AirspeedSdp3x sdp3x;
44
45extern void sdp3x_init(void);
46extern void sdp3x_periodic(void);
47extern void sdp3x_event(void);
48
49#endif
struct AirspeedSdp3x sdp3x
bool sync_send
Flag to enable sending every new measurement via telemetry for debugging purpose.
float pressure
(differential) pressure in Pascal
float airspeed_scale
Quadratic scale factor to convert (differential) pressure to airspeed.
bool initialized
init flag
float temperature
Temperature in deg Celcius.
void sdp3x_init(void)
uint16_t raw_p
raw value from chip
bool autoset_offset
Set offset value from current filtered value.
void sdp3x_periodic(void)
float pressure_scale
Scaling factor from raw measurement to Pascal.
float airspeed
Airspeed in m/s estimated from (differential) pressure.
void sdp3x_event(void)
float pressure_offset
Offset in Pascal.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.