From 79e28d6f2efc1b845c2000fff197fc34f377b969 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 11 Mar 2026 02:43:12 -0500 Subject: [PATCH] back to zero --- system/manager/manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/manager/manager.py b/system/manager/manager.py index f3e69517d..764f761f2 100755 --- a/system/manager/manager.py +++ b/system/manager/manager.py @@ -253,13 +253,13 @@ def manager_init() -> None: with open(lateral_tuning_migration_flag_file, "w") as f: f.write("migrated") - # One-time migration: default IncreasedStoppedDistance to 4 ft for pedal cars - pedal_stop_distance_migration_flag_file = "/data/frogpilot_pedal_stop_distance_migrated.flag" + # One-time migration: reset IncreasedStoppedDistance back to 0 ft for pedal cars + pedal_stop_distance_migration_flag_file = "/data/frogpilot_pedal_stop_distance_zeroed.flag" if not os.path.exists(pedal_stop_distance_migration_flag_file): if has_pedal: - if params.get_int("IncreasedStoppedDistance") != 4: - params.put_int("IncreasedStoppedDistance", 4) - params_cache.put_int("IncreasedStoppedDistance", 4) + if params.get_int("IncreasedStoppedDistance") != 0: + params.put_int("IncreasedStoppedDistance", 0) + params_cache.put_int("IncreasedStoppedDistance", 0) with open(pedal_stop_distance_migration_flag_file, "w") as f: f.write("migrated")