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:
parent
bca7b905b5
commit
5748e75408
9 changed files with 587 additions and 146 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue