From 27e112e70ce407e1144f2b27afe42b85ca92ce49 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 8 Sep 2025 22:53:03 -0400 Subject: [PATCH] comments --- .../lib/speed_limit_controller/speed_limit_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/controls/lib/speed_limit_controller/speed_limit_controller.py b/sunnypilot/selfdrive/controls/lib/speed_limit_controller/speed_limit_controller.py index 62249ab67d..fd759f79d3 100644 --- a/sunnypilot/selfdrive/controls/lib/speed_limit_controller/speed_limit_controller.py +++ b/sunnypilot/selfdrive/controls/lib/speed_limit_controller/speed_limit_controller.py @@ -183,6 +183,7 @@ class SpeedLimitController: self.long_engaged_timer = max(0, self.long_engaged_timer - 1) self.pre_active_timer = max(0, self.pre_active_timer - 1) + # ACTIVE, ADAPTING, PENDING, PRE_ACTIVE, INACTIVE if self.state != SpeedLimitControlState.disabled: if not self.op_engaged or not self.enabled: self.state = SpeedLimitControlState.disabled @@ -211,7 +212,7 @@ class SpeedLimitController: else: self.state = SpeedLimitControlState.active - # PREACTIVE + # PRE_ACTIVE elif self.state == SpeedLimitControlState.preActive: if self.initial_max_set_confirmed(): self.initial_max_set = True