mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Add altitude variant for OSD (#13716)
This commit is contained in:
parent
2ceb8e0417
commit
0686b74197
5 changed files with 31 additions and 11 deletions
|
@ -482,6 +482,7 @@ extern "C" {
|
|||
int32_t getMAhDrawn() { return 0; }
|
||||
float getWhDrawn() { return 0.0; }
|
||||
int32_t getEstimatedAltitudeCm() { return 0; }
|
||||
int32_t getAltitudeAsl() { return 0; }
|
||||
int32_t getEstimatedVario() { return 0; }
|
||||
int32_t blackboxGetLogNumber() { return 0; }
|
||||
bool isBlackboxDeviceWorking() { return true; }
|
||||
|
|
|
@ -1357,6 +1357,10 @@ extern "C" {
|
|||
return simulationAltitude;
|
||||
}
|
||||
|
||||
int32_t getAltitudeAsl() {
|
||||
return simulationAltitude;
|
||||
}
|
||||
|
||||
int32_t getEstimatedVario() {
|
||||
return simulationVerticalSpeed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue