brianhansonxyz
41c154014a
add speed_logic daemon: write speed + cruise warning display params
Standalone managed process (selfdrive.clearpilot.speed_logicd) that
ticks SpeedState at 2 Hz from cereal subscriptions. Decoupled from
controlsd so self-driving timing isn't affected.
Inputs:
- gpsLocation.speed + hasFix (vehicle speed)
- carState.cruiseState (cruise speed, enabled, standstill)
- CarSpeedLimit memory param (will be populated when carstate.py CAN-FD
decode is ported; 0 until then — speed-limit + warning logic
naturally short-circuits)
- IsMetric persistent param (read once at startup)
Outputs (memory params, gated on change to avoid 2 Hz tmpfs churn):
- ClearpilotSpeedDisplay, ClearpilotHasSpeed, ClearpilotSpeedUnit
- ClearpilotSpeedLimitDisplay, ClearpilotIsMetric
- ClearpilotCruiseWarning, ClearpilotCruiseWarningSpeed
- ClearpilotPlayDing (one-shot trigger consumed by soundd)
speed_logic.py copied verbatim from broken; speed_logicd.py is new
glue. Registered as PythonProcess gated on only_onroad.
2026-05-03 22:52:39 -05:00
..
2026-04-11 06:25:25 +00:00
2026-05-03 20:53:51 -05:00
2026-04-11 06:25:25 +00:00
2026-05-03 20:53:51 -05:00
2026-05-03 22:52:39 -05:00
2026-05-03 22:08:08 -05:00
2026-04-11 06:25:25 +00:00
2026-05-03 21:55:48 -05:00
2026-05-03 22:29:07 -05:00
2026-05-03 22:52:39 -05:00
2026-04-26 08:40:02 -05:00
2026-04-26 08:40:02 -05:00
2026-04-11 06:25:25 +00:00
2026-05-03 20:53:51 -05:00
2026-05-03 22:50:46 -05:00
2026-04-11 06:25:25 +00:00
2026-04-11 06:25:25 +00:00
2026-05-03 20:53:51 -05:00
2026-04-11 06:25:25 +00:00
2026-04-11 06:25:25 +00:00
2026-04-11 06:25:25 +00:00