parent
40982f18ab
commit
9e7fb4680d
|
@ -107,10 +107,6 @@ struct CarEvent @0x9b1657f34caf3ad3 {
|
||||||
startupWhitePanda @82;
|
startupWhitePanda @82;
|
||||||
canErrorPersistent @83;
|
canErrorPersistent @83;
|
||||||
belowEngageSpeed @84;
|
belowEngageSpeed @84;
|
||||||
noGps @85;
|
|
||||||
focusRecoverActive @86;
|
|
||||||
wrongCruiseMode @87;
|
|
||||||
neosUpdateRequired @88;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
import gc
|
import gc
|
||||||
import subprocess
|
|
||||||
from cereal import car, log
|
from cereal import car, log
|
||||||
from common.numpy_fast import clip
|
from common.numpy_fast import clip
|
||||||
from common.realtime import sec_since_boot, set_realtime_priority, Ratekeeper, DT_CTRL
|
from common.realtime import sec_since_boot, set_realtime_priority, Ratekeeper, DT_CTRL
|
||||||
|
@ -143,10 +142,6 @@ class Controls:
|
||||||
# if hw_type == HwType.whitePanda:
|
# if hw_type == HwType.whitePanda:
|
||||||
# self.events.add(EventName.whitePandaUnsupported, static=True)
|
# self.events.add(EventName.whitePandaUnsupported, static=True)
|
||||||
|
|
||||||
uname = subprocess.check_output(["uname", "-v"], encoding='utf8').strip()
|
|
||||||
if uname == "#1 SMP PREEMPT Wed Jun 10 12:40:53 PDT 2020":
|
|
||||||
self.events.add(EventName.neosUpdateRequired, static=True)
|
|
||||||
|
|
||||||
# controlsd is driven by can recv, expected at 100Hz
|
# controlsd is driven by can recv, expected at 100Hz
|
||||||
self.rk = Ratekeeper(100, print_delay_threshold=None)
|
self.rk = Ratekeeper(100, print_delay_threshold=None)
|
||||||
self.prof = Profiler(False) # off by default
|
self.prof = Profiler(False) # off by default
|
||||||
|
|
|
@ -507,16 +507,6 @@ EVENTS = {
|
||||||
ET.NO_ENTRY: NoEntryAlert("Speed Too Low"),
|
ET.NO_ENTRY: NoEntryAlert("Speed Too Low"),
|
||||||
},
|
},
|
||||||
|
|
||||||
EventName.neosUpdateRequired: {
|
|
||||||
ET.PERMANENT: Alert(
|
|
||||||
"NEOS Update Required",
|
|
||||||
"Please Wait for Update",
|
|
||||||
AlertStatus.normal, AlertSize.mid,
|
|
||||||
Priority.HIGHEST, VisualAlert.none, AudibleAlert.none, 0., 0., .2),
|
|
||||||
ET.NO_ENTRY: NoEntryAlert("NEOS Update Required"),
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
EventName.sensorDataInvalid: {
|
EventName.sensorDataInvalid: {
|
||||||
ET.PERMANENT: Alert(
|
ET.PERMANENT: Alert(
|
||||||
"No Data from Device Sensors",
|
"No Data from Device Sensors",
|
||||||
|
|
Loading…
Reference in New Issue