Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
baro_ets.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 Vassilis Varveropoulos
3
* Copyright (C) 2010 The Paparazzi Team
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, write to
19
* the Free Software Foundation, 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
21
*/
22
42
#ifndef BARO_ETS_H
43
#define BARO_ETS_H
44
45
#include "
std.h
"
46
#include "
mcu_periph/i2c.h
"
47
49
#define BARO_ETS_DT BARO_ETS_READ_PERIODIC_PERIOD
50
51
extern
uint16_t
baro_ets_adc
;
52
extern
uint16_t
baro_ets_offset
;
53
extern
bool
baro_ets_valid
;
54
extern
bool
baro_ets_enabled
;
55
extern
float
baro_ets_altitude
;
56
extern
float
baro_ets_r
;
57
extern
float
baro_ets_sigma2
;
58
59
extern
struct
i2c_transaction
baro_ets_i2c_trans
;
60
61
extern
void
baro_ets_init
(
void
);
62
extern
void
baro_ets_read_periodic
(
void
);
63
extern
void
baro_ets_read_event
(
void
);
64
65
#define BaroEtsEvent() { if (baro_ets_i2c_trans.status == I2CTransSuccess) baro_ets_read_event(); }
66
67
#endif // BARO_ETS_H
baro_ets_enabled
bool baro_ets_enabled
Definition:
baro_ets.c:107
uint16_t
unsigned short uint16_t
Definition:
types.h:16
baro_ets_sigma2
float baro_ets_sigma2
Definition:
baro_ets.c:109
baro_ets_init
void baro_ets_init(void)
Definition:
baro_ets.c:120
baro_ets_read_event
void baro_ets_read_event(void)
Definition:
baro_ets.c:151
baro_ets_valid
bool baro_ets_valid
Definition:
baro_ets.c:105
baro_ets_altitude
float baro_ets_altitude
Definition:
baro_ets.c:106
baro_ets_read_periodic
void baro_ets_read_periodic(void)
Definition:
baro_ets.c:139
baro_ets_adc
uint16_t baro_ets_adc
Definition:
baro_ets.c:103
std.h
i2c_transaction
I2C transaction structure.
Definition:
i2c.h:93
baro_ets_i2c_trans
struct i2c_transaction baro_ets_i2c_trans
Definition:
baro_ets.c:111
baro_ets_r
float baro_ets_r
Definition:
baro_ets.c:108
baro_ets_offset
uint16_t baro_ets_offset
Definition:
baro_ets.c:104
i2c.h
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
sw
airborne
modules
sensors
baro_ets.h
Generated on Wed Aug 28 2019 16:29:08 for Paparazzi UAS by
1.8.8