mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
temporarily disable per-core cpu usage check
old-commit-hash: 7394956a9056ef313b3bffb2a1aa93ae9ba97856
This commit is contained in:
@@ -206,9 +206,11 @@ class Controls:
|
||||
# TODO: make tici threshold the same
|
||||
if self.sm['deviceState'].memoryUsagePercent > (90 if TICI else 65) and not SIMULATION:
|
||||
self.events.add(EventName.lowMemory)
|
||||
cpus = list(self.sm['deviceState'].cpuUsagePercent)[:(-1 if EON else None)]
|
||||
if max(cpus, default=0) > 95 and not SIMULATION:
|
||||
self.events.add(EventName.highCpuUsage)
|
||||
|
||||
# TODO: enable this once loggerd CPU usage is more reasonable
|
||||
#cpus = list(self.sm['deviceState'].cpuUsagePercent)[:(-1 if EON else None)]
|
||||
#if max(cpus, default=0) > 95 and not SIMULATION:
|
||||
# self.events.add(EventName.highCpuUsage)
|
||||
|
||||
# Alert if fan isn't spinning for 5 seconds
|
||||
if self.sm['peripheralState'].pandaType in [PandaType.uno, PandaType.dos]:
|
||||
|
||||
Reference in New Issue
Block a user