Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
airspeed_ms45xx_i2c.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Freek van Tienen <freek.v.tienen@gmail.com>
3
* 2014 Felix Ruess <felix.ruess@gmail.com>
4
*
5
* This file is part of paparazzi
6
*
7
* paparazzi is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2, or (at your option)
10
* any later version.
11
*
12
* paparazzi is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with paparazzi; see the file COPYING. If not, see
19
* <http://www.gnu.org/licenses/>.
20
*/
21
26
#ifndef AIRSPEED_MS45XX_I2C_H
27
#define AIRSPEED_MS45XX_I2C_H
28
29
#include "
std.h
"
30
31
struct
AirspeedMs45xx
{
32
float
pressure
;
33
int16_t
temperature
;
34
float
airspeed
;
35
bool
pressure_type
;
36
float
airspeed_scale
;
37
float
pressure_scale
;
38
float
pressure_offset
;
39
bool
autoset_offset
;
40
bool
sync_send
;
41
};
42
43
extern
struct
AirspeedMs45xx
ms45xx
;
44
45
extern
void
ms45xx_i2c_init
(
void
);
46
extern
void
ms45xx_i2c_periodic
(
void
);
47
extern
void
ms45xx_i2c_event
(
void
);
48
49
#endif
AirspeedMs45xx::airspeed_scale
float airspeed_scale
Quadratic scale factor to convert (differential) pressure to airspeed.
Definition:
airspeed_ms45xx_i2c.h:36
ms45xx_i2c_init
void ms45xx_i2c_init(void)
Definition:
airspeed_ms45xx_i2c.c:184
AirspeedMs45xx::airspeed
float airspeed
Airspeed in m/s estimated from (differential) pressure.
Definition:
airspeed_ms45xx_i2c.h:34
AirspeedMs45xx::temperature
int16_t temperature
Temperature in 0.1 deg Celcius.
Definition:
airspeed_ms45xx_i2c.h:33
AirspeedMs45xx
Definition:
airspeed_ms45xx_i2c.h:31
AirspeedMs45xx::pressure
float pressure
(differential) pressure in Pascal
Definition:
airspeed_ms45xx_i2c.h:32
ms45xx_i2c_periodic
void ms45xx_i2c_periodic(void)
Definition:
airspeed_ms45xx_i2c.c:207
std.h
AirspeedMs45xx::pressure_scale
float pressure_scale
Scaling factor from raw measurement to Pascal.
Definition:
airspeed_ms45xx_i2c.h:37
AirspeedMs45xx::sync_send
bool sync_send
Flag to enable sending every new measurement via telemetry for debugging purpose.
Definition:
airspeed_ms45xx_i2c.h:40
ms45xx
struct AirspeedMs45xx ms45xx
Definition:
airspeed_ms45xx_i2c.c:170
AirspeedMs45xx::autoset_offset
bool autoset_offset
Set offset value from current filtered value.
Definition:
airspeed_ms45xx_i2c.h:39
int16_t
signed short int16_t
Definition:
types.h:17
ms45xx_i2c_event
void ms45xx_i2c_event(void)
Definition:
airspeed_ms45xx_i2c.c:217
AirspeedMs45xx::pressure_type
bool pressure_type
Pressure type Differential of Gauge.
Definition:
airspeed_ms45xx_i2c.h:35
AirspeedMs45xx::pressure_offset
float pressure_offset
Offset in Pascal.
Definition:
airspeed_ms45xx_i2c.h:38
sw
airborne
modules
sensors
airspeed_ms45xx_i2c.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17