Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
baro_spa06.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 OpenUAS
3 * Thanks to Florian Sansou florian.sansou@enac.fr for initial implementation
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 */
22
32#ifndef BARO_SPA06_H
33#define BARO_SPA06_H
34
35#include "peripherals/spa06.h"
36
38extern struct spa06_t baro_spa06;
39
40extern float baro_spa06_alt;
41extern bool baro_spa06_alt_valid;
42
44void baro_spa06_init(void);
46void baro_spa06_periodic(void);
48void baro_spa06_event(void);
49
50#endif
bool baro_spa06_alt_valid
true once the first valid sample has been processed
Definition baro_spa06.c:66
void baro_spa06_event(void)
Process finished bus transactions and publish new measurements (module event hook)
Definition baro_spa06.c:127
float baro_spa06_alt
ISA pressure altitude of the last sample [m].
Definition baro_spa06.c:65
void baro_spa06_periodic(void)
Drive the sensor state machine (module periodic hook)
Definition baro_spa06.c:115
void baro_spa06_init(void)
Bind the driver to the configured bus and register telemetry (module init hook)
Definition baro_spa06.c:97
struct spa06_t baro_spa06
The barometer driver instance, exposed for debugging/telemetry.
Definition baro_spa06.c:71
Driver for the Goertek SPA06-003 / SPL06-001 barometer (I2C or SPI)
Driver instance state.
Definition spa06.h:110