1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Update OSD throttle options

Pre-INAV 3.0 there were two working throttle display elements. A PR in 2.7 made a change that meant both OSD throttle elements showed the same data. This is pretty pointless. The previous method allowed the display of the throttle in a non-scaled view, which made choosing navigational throttles easier. This PR allows the pilot to see scaled throttle, unscaled, or both. Both throttles work for manual and auto throttle.
This commit is contained in:
Darren Lines 2023-02-17 18:49:33 +00:00
parent 9c32094f5e
commit 1c6a902cb0
10 changed files with 28 additions and 18 deletions

View file

@ -833,7 +833,7 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
sbufWriteU32(dst, getFlightTime()); // Flight time (seconds)
// Throttle
sbufWriteU8(dst, getThrottlePercent()); // Throttle Percent
sbufWriteU8(dst, getThrottlePercent(true)); // Throttle Percent
sbufWriteU8(dst, navigationIsControllingThrottle() ? 1 : 0); // Auto Throttle Flag (0 or 1)
break;