1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Moved sensor global data into sensor_s structs

This commit is contained in:
Martin Budden 2016-11-19 14:11:03 +00:00
parent fd5710051e
commit b8b9c95f57
69 changed files with 359 additions and 343 deletions

View file

@ -17,6 +17,8 @@
#pragma once
#include "drivers/barometer.h"
typedef enum {
BARO_DEFAULT = 0,
BARO_NONE = 1,
@ -35,8 +37,13 @@ typedef struct barometerConfig_s {
float baro_cf_alt; // apply CF to use ACC for height estimation
} barometerConfig_t;
extern int32_t BaroAlt;
extern int32_t baroTemperature; // Use temperature for telemetry
typedef struct baro_s {
baroDev_t dev;
int32_t BaroAlt;
int32_t baroTemperature; // Use temperature for telemetry
} baro_t;
extern baro_t baro;
void useBarometerConfig(barometerConfig_t *barometerConfigToUse);
bool isBaroCalibrationComplete(void);