Increase the stopping distance

Added toggle to increase the stopping distance.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 72fac6ed9d
commit 54c9cc3195
5 changed files with 20 additions and 8 deletions

View File

@@ -139,3 +139,4 @@ class FrogPilotPlanner:
longitudinal_tune = params.get_bool("LongitudinalTune")
self.acceleration_profile = params.get_int("AccelerationProfile") if longitudinal_tune else 0
self.aggressive_acceleration = params.get_bool("AggressiveAcceleration") and longitudinal_tune
self.increased_stopping_distance = params.get_int("StoppingDistance") * (1 if self.is_metric else CV.FOOT_TO_METER) if longitudinal_tune else 0