1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Remove flight_imu and flight_common.c's dependencies on the mw.h/board.h

files.  Move baro calibration code into sensors_barometer.c.  Move other
sensor variables into appropriate files.
This commit is contained in:
Dominic Clifton 2014-04-21 11:29:01 +01:00
parent 51f2487cf5
commit b3430ae1be
7 changed files with 91 additions and 34 deletions

View file

@ -7,15 +7,16 @@
#include "sensors_common.h"
uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
uint16_t calibratingG = 0;
uint16_t acc_1G = 256; // this is the 1G measured acceleration.
int16_t heading, magHold;
extern uint16_t batteryWarningVoltage;
extern uint8_t batteryCellCount;
extern float magneticDeclination;
extern sensor_t gyro;
extern baro_t baro;
extern sensor_t acc;
#ifdef FY90Q
// FY90Q analog gyro/acc
void sensorsAutodetect(void)