skip manager check in sim

old-commit-hash: 4ca462a846506b4894c25fc0d4d265de373c2bf7
This commit is contained in:
Adeeb Shihadeh
2021-02-04 20:51:37 -08:00
parent 61b3840c7f
commit 5d28f23778
+5 -5
View File
@@ -169,11 +169,6 @@ class Controls:
if self.sm['thermal'].memoryUsagePercent > 90:
self.events.add(EventName.lowMemory)
# Check if all manager processes are running
not_running = set(p.name for p in self.sm['managerState'].processes if not p.running)
if self.sm.rcv_frame['managerState'] and (not_running - IGNORE_PROCESSES):
self.events.add(EventName.processNotRunning)
# Alert if fan isn't spinning for 5 seconds
if self.sm['health'].pandaType in [PandaType.uno, PandaType.dos]:
if self.sm['health'].fanSpeedRpm == 0 and self.sm['thermal'].fanSpeedRpmDesired > 50:
@@ -250,6 +245,11 @@ class Controls:
if self.sm['modelV2'].frameDropPerc > 20:
self.events.add(EventName.modeldLagging)
# Check if all manager processes are running
not_running = set(p.name for p in self.sm['managerState'].processes if not p.running)
if self.sm.rcv_frame['managerState'] and (not_running - IGNORE_PROCESSES):
self.events.add(EventName.processNotRunning)
# Only allow engagement with brake pressed when stopped behind another stopped car
if CS.brakePressed and self.sm['longitudinalPlan'].vTargetFuture >= STARTING_TARGET_SPEED \
and self.CP.openpilotLongitudinalControl and CS.vEgo < 0.3: