1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-20 06:45:14 +03:00

Braking enabled only on a switch

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-05-12 15:41:03 +02:00
parent d1b064d4b8
commit 2fa3132e9a
3 changed files with 10 additions and 0 deletions

View file

@ -1976,6 +1976,7 @@ static bool adjustPositionFromRCInput(void)
* Process states only for POSHOLD. In any other case we go back to old routines
*/
if (
IS_RC_MODE_ACTIVE(BOXBRAKING) &&
navConfig()->general.flags.user_control_mode == NAV_GPS_CRUISE &&
navConfig()->mc.braking_speed_threshold > 0 &&
(