Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
airspeed_amsys.h
Go to the documentation of this file.
1
/*
2
* Driver for a Amsys Differential Presure Sensor I2C
3
* AMS 5812-0003-D
4
* AMS 5812-0001-D
5
*
6
* Copyright (C) 2010 The Paparazzi Team
7
*
8
* This file is part of paparazzi.
9
*
10
* paparazzi is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2, or (at your option)
13
* any later version.
14
*
15
* paparazzi is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with paparazzi; see the file COPYING. If not, write to
22
* the Free Software Foundation, 59 Temple Place - Suite 330,
23
* Boston, MA 02111-1307, USA.
24
*/
25
26
#ifndef AIRSPEED_AMSYS_H
27
#define AIRSPEED_AMSYS_H
28
29
#include "
std.h
"
30
#include "
mcu_periph/i2c.h
"
31
32
extern
float
airspeed_scale
;
33
extern
float
airspeed_filter
;
34
35
extern
struct
i2c_transaction
airspeed_amsys_i2c_trans
;
36
37
extern
void
airspeed_amsys_init
(
void
);
38
extern
void
airspeed_amsys_read_periodic
(
void
);
39
extern
void
airspeed_amsys_read_event
(
void
);
40
41
#define AirspeedAmsysEvent() { if (airspeed_amsys_i2c_trans.status == I2CTransSuccess) airspeed_amsys_read_event(); }
42
43
#endif // AIRSPEED_AMSYS_H
airspeed_amsys_init
void airspeed_amsys_init(void)
Definition:
airspeed_amsys.c:92
airspeed_amsys_i2c_trans
struct i2c_transaction airspeed_amsys_i2c_trans
Definition:
airspeed_amsys.c:80
airspeed_scale
float airspeed_scale
Definition:
airspeed_amsys.c:78
airspeed_amsys_read_event
void airspeed_amsys_read_event(void)
Definition:
airspeed_amsys.c:143
std.h
i2c_transaction
I2C transaction structure.
Definition:
i2c.h:93
airspeed_amsys_read_periodic
void airspeed_amsys_read_periodic(void)
Definition:
airspeed_amsys.c:109
i2c.h
airspeed_filter
float airspeed_filter
Definition:
airspeed_amsys.c:79
sw
airborne
modules
sensors
airspeed_amsys.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17