add athena last ping time to deviceState (#20961)

old-commit-hash: 4e17c0b01a
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 1b6fe77d69
commit 4d33a71115
  1. 2
      cereal
  2. 4
      selfdrive/thermald/thermald.py

@ -1 +1 @@
Subproject commit c429707aefcc960657577abc1895f88ea8adaf06 Subproject commit c73da3724d3236b59b01edf7c1e3daabcf1ce17d

@ -402,6 +402,10 @@ def thermald_thread():
msg.deviceState.started = started_ts is not None msg.deviceState.started = started_ts is not None
msg.deviceState.startedMonoTime = int(1e9*(started_ts or 0)) msg.deviceState.startedMonoTime = int(1e9*(started_ts or 0))
last_ping = params.get("LastAthenaPingTime")
if last_ping is not None:
msg.deviceState.lastAthenaPingTime = int(last_ping)
msg.deviceState.thermalStatus = thermal_status msg.deviceState.thermalStatus = thermal_status
pm.send("deviceState", msg) pm.send("deviceState", msg)

Loading…
Cancel
Save