mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 23:22:04 +08:00
skip manager check in sim
old-commit-hash: 4ca462a846506b4894c25fc0d4d265de373c2bf7
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user