mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Fix OSD throttle position element calculation and add 3D support
Previously the Throttle Position element calculation was based solely on the raw rcCommand value and didn't take into account the min_check deadzone so the resulting displayed percentage was incorrect. Also 3D trottle handling was not considered. Corrected the calculation and added support for 3D throttle modes. Reversed thrust will be represented with negative throttle percentages.
This commit is contained in:
parent
586eef94e5
commit
5ed1bbb2a9
4 changed files with 26 additions and 15 deletions
|
@ -1079,4 +1079,5 @@ extern "C" {
|
|||
bool pidOsdAntiGravityActive(void) { return false; }
|
||||
bool failsafeIsActive(void) { return false; }
|
||||
bool gpsRescueIsConfigured(void) { return false; }
|
||||
int8_t calculateThrottlePercent(void) { return 0; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue