UI: shift speed-limit/cruise numbers down; modeld: keep 20fps at standstill-in-drive; health: FPS instead of LAG
- onroad: speed-limit sign and cruise over/under sign — shift the number ~10% further down inside the inner box (adjusted top inset 42→86). - modeld: narrow the standby condition. Previously 0fps when standstill-or-parked; now 0fps only when parked. Standstill in drive (red light) continues to run at 20fps so lateral can engage/stay responsive and liveCalibration/paramsd keep seeing observations. Ignition-off still stops modeld at the manager level. - Health overlay: replace LAG row with FPS (modeld framerate read from ModelFps memory param, which modeld already writes only on standby transition — no per-frame writes). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -241,10 +241,12 @@ def main(demo=False):
|
||||
|
||||
sm.update(0)
|
||||
|
||||
# CLEARPILOT: two-state modeld — 0fps at standstill or parked, 20fps otherwise.
|
||||
standstill = sm['carState'].standstill
|
||||
# CLEARPILOT: two-state modeld — 0fps only when parked (ignition-on means
|
||||
# engine running in park; ignition-off stops modeld at the manager level).
|
||||
# Standstill in drive (red light) keeps running so lateral stays responsive
|
||||
# and liveCalibration/paramsd observations continue.
|
||||
parked = sm['carState'].gearShifter == car.CarState.GearShifter.park
|
||||
should_standby = standstill or parked
|
||||
should_standby = parked
|
||||
if should_standby and not model_standby:
|
||||
params_memory.put_bool("ModelStandby", True)
|
||||
params_memory.put("ModelFps", "0")
|
||||
|
||||
Reference in New Issue
Block a user