From daa64365df5e163853f0b8d7345ffa513bd18a60 Mon Sep 17 00:00:00 2001 From: Damien Maguire Date: Wed, 3 Jan 2024 14:17:04 +0000 Subject: [PATCH] Add PARK dir --- src/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils.cpp b/src/utils.cpp index 64387ef3..b95ca22d 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -150,6 +150,9 @@ float GetUserThrottleCommand() if (direction == 0) return 0.0; + if (direction == 2)//No throttle val if in PARK also. + return 0.0; + // calculate the throttle depending on the channel we've decided to use if (useChannel == 0) return Throttle::CalcThrottle(pot1val, 0, brake);