mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
Fix tici powerdown and add support for forcing (#20132)
* also shutdown on tici * force powerdown * bump panda * abstract out shutdown and thermal config * add comment on tici shutdown Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 8ad1c793d1c4fbb37d763b40750561ad3aca137e
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import random
|
||||
|
||||
from cereal import log
|
||||
from selfdrive.hardware.base import HardwareBase
|
||||
from selfdrive.hardware.base import HardwareBase, ThermalConfig
|
||||
|
||||
NetworkType = log.DeviceState.NetworkType
|
||||
NetworkStrength = log.DeviceState.NetworkStrength
|
||||
@@ -70,3 +70,9 @@ class Pc(HardwareBase):
|
||||
|
||||
def get_current_power_draw(self):
|
||||
return 0
|
||||
|
||||
def shutdown(self):
|
||||
print("SHUTDOWN!")
|
||||
|
||||
def get_thermal_config(self):
|
||||
return ThermalConfig(cpu=((None,), 1), gpu=((None,), 1), mem=(None, 1), bat=(None, 1), ambient=(None, 1))
|
||||
|
||||
Reference in New Issue
Block a user