mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-11-05 03:43:49 +08:00
modeld: restore 1.6 m/s curvature hold threshold
Restore the original minimum lateral-control speed in both model runners. At or below 1.6 m/s, keep the previous desired curvature. This does not disable steering or replace the model speed input. Validation: both files byte-match commit 32f16216977bceb42923eb7eeaa5dd926979ce65; Python syntax, scoped Ruff and diff checks pass. Turn-cue and cooperative-steering behavior are otherwise unchanged.
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