mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-11-04 01:43:43 +08:00
modeld: raise minimum lateral control speed to 1.6 m/s
Port of commaai/openpilot#39174. Below this speed modeld holds the previous desired curvature instead of following the model, so the wheel stops chasing noisy plans while creeping or stopped. Applied to both selfdrive/modeld and sunnypilot modeld_v2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ATDgLMxRqNpP9H2Ndeg65v
This commit is contained in:
@@ -49,7 +49,7 @@ SEND_RAW_PRED = os.getenv('SEND_RAW_PRED')
|
||||
|
||||
LAT_SMOOTH_SECONDS = 0.0
|
||||
LONG_SMOOTH_SECONDS = 0.3
|
||||
MIN_LAT_CONTROL_SPEED = 0.3
|
||||
MIN_LAT_CONTROL_SPEED = 1.6
|
||||
BIG_MODEL_TIMEOUT = 60
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class ModelState(ModelStateBase):
|
||||
|
||||
self.LAT_SMOOTH_SECONDS = float(overrides.get('lat', ".0"))
|
||||
self.LONG_SMOOTH_SECONDS = float(overrides.get('long', ".0"))
|
||||
self.MIN_LAT_CONTROL_SPEED = 0.3
|
||||
self.MIN_LAT_CONTROL_SPEED = 1.6
|
||||
self.PLANPLUS_CONTROL: float = 1.0
|
||||
self.chestnut = chestnut
|
||||
|
||||
|
||||
Reference in New Issue
Block a user