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 */
32
struct
airspeed_uavcan_t
{
33
float
diff_p
;
34
float
temperature
;
35
36
float
diff_p_offset
;
37
float
diff_p_scale
;
38
};
39
extern
struct
airspeed_uavcan_t
airspeed_uavcan
;
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 */
airspeed_uavcan_t::temperature
float temperature
Temperature in Celsius.
Definition:
airspeed_uavcan.h:34
airspeed_uavcan_autoset_offset
void airspeed_uavcan_autoset_offset(bool set)
Definition:
airspeed_uavcan.c:149
airspeed_uavcan
struct airspeed_uavcan_t airspeed_uavcan
Definition:
airspeed_uavcan.c:61
airspeed_uavcan_t::diff_p_offset
float diff_p_offset
Differential pressure offset.
Definition:
airspeed_uavcan.h:36
airspeed_uavcan_t::diff_p
float diff_p
Differential pressure.
Definition:
airspeed_uavcan.h:33
airspeed_uavcan_t::diff_p_scale
float diff_p_scale
Differential pressure scale.
Definition:
airspeed_uavcan.h:37
airspeed_uavcan_init
void airspeed_uavcan_init(void)
Definition:
airspeed_uavcan.c:131
airspeed_uavcan_t
Definition:
airspeed_uavcan.h:32
std.h
sw
airborne
modules
sensors
airspeed_uavcan.h
Generated on Fri Nov 8 2024 14:10:47 for Paparazzi UAS by
1.9.1