1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Additional IBUS telemetry implemented.

This commit is contained in:
qba667 2018-01-17 22:32:50 +01:00 committed by
parent bca7b905b5
commit 5748e75408
9 changed files with 587 additions and 146 deletions

View file

@ -316,6 +316,8 @@ uint32_t baroUpdate(void)
baro.dev.get_up(&baro.dev);
baro.dev.start_ut(&baro.dev);
baro.dev.calculate(&baroPressure, &baroTemperature);
baro.baroPressure = baroPressure;
baro.baroTemperature = baroTemperature;
baroPressureSum = recalculateBarometerTotal(barometerConfig()->baro_sample_count, baroPressureSum, baroPressure);
state = BAROMETER_NEEDS_SAMPLES;
return baro.dev.ut_delay;

View file

@ -50,6 +50,7 @@ typedef struct baro_s {
baroDev_t dev;
int32_t BaroAlt;
int32_t baroTemperature; // Use temperature for telemetry
int32_t baroPressure; // Use pressure for telemetry
} baro_t;
extern baro_t baro;