Lock doors when in drive for Toyota/Lexus

Added toggle to automatically lock the doors when in drive for Toyota/Lexus vehicles.

Credit goes to AlexandreSato!

https: //github.com/AlexandreSato/openpilot
Co-Authored-By: Alexandre Nobuharu Sato <66435071+alexandresato@users.noreply.github.com>
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent f4726bf095
commit ae0f095915
5 changed files with 24 additions and 1 deletions

View File

@@ -1073,6 +1073,7 @@ class Controls:
lateral_tune = self.params.get_bool("LateralTune")
self.force_auto_tune = lateral_tune and self.params.get_float("ForceAutoTune")
self.frogpilot_variables.lock_doors = self.params.get_bool("LockDoors")
self.frogpilot_variables.long_pitch = self.params.get_bool("LongPitch")
longitudinal_tune = self.params.get_bool("LongitudinalTune")