mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
more reverting
This commit is contained in:
parent
1b1837905c
commit
b240d745d7
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ void calculateEstimatedAltitude(timeUs_t currentTimeUs)
|
|||
static timeUs_t previousTimeUs = 0;
|
||||
static int32_t baroAltOffset = 0;
|
||||
static int32_t gpsAltOffset = 0;
|
||||
static bool altitudeOffsetSet = false;
|
||||
|
||||
const uint32_t dTime = currentTimeUs - previousTimeUs;
|
||||
if (dTime < BARO_UPDATE_FREQUENCY_40HZ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue