Aggressive acceleration when following a lead

Added toggle to make the acceleration more aggressive when following a lead.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent fc2fcb4834
commit 6fb2ad00c3
5 changed files with 16 additions and 1 deletions

View File

@@ -75,3 +75,4 @@ class FrogPilotPlanner:
longitudinal_tune = params.get_bool("LongitudinalTune")
self.acceleration_profile = params.get_int("AccelerationProfile") if longitudinal_tune else 0
self.deceleration_profile = params.get_int("DecelerationProfile") if longitudinal_tune else 0
self.aggressive_acceleration = longitudinal_tune and params.get_bool("AggressiveAcceleration")