Skip to content

Commit 5e81beb

Browse files
remove deviceState.ambientTempC (#31533)
old-commit-hash: 0b4d08f
1 parent f5beedf commit 5e81beb

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

cereal

selfdrive/thermald/thermald.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def read_thermal(thermal_config):
8383
dat.deviceState.cpuTempC = [read_tz(z) / thermal_config.cpu[1] for z in thermal_config.cpu[0]]
8484
dat.deviceState.gpuTempC = [read_tz(z) / thermal_config.gpu[1] for z in thermal_config.gpu[0]]
8585
dat.deviceState.memoryTempC = read_tz(thermal_config.mem[0]) / thermal_config.mem[1]
86-
dat.deviceState.ambientTempC = read_tz(thermal_config.ambient[0]) / thermal_config.ambient[1]
8786
dat.deviceState.pmicTempC = [read_tz(z) / thermal_config.pmic[1] for z in thermal_config.pmic[0]]
8887
return dat
8988

@@ -412,7 +411,6 @@ def thermald_thread(end_event, hw_queue) -> None:
412411
for i, temp in enumerate(msg.deviceState.gpuTempC):
413412
statlog.gauge(f"gpu{i}_temperature", temp)
414413
statlog.gauge("memory_temperature", msg.deviceState.memoryTempC)
415-
statlog.gauge("ambient_temperature", msg.deviceState.ambientTempC)
416414
for i, temp in enumerate(msg.deviceState.pmicTempC):
417415
statlog.gauge(f"pmic{i}_temperature", temp)
418416
for i, temp in enumerate(last_hw_state.nvme_temps):

system/hardware/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from cereal import log
66

7-
ThermalConfig = namedtuple('ThermalConfig', ['cpu', 'gpu', 'mem', 'bat', 'ambient', 'pmic'])
7+
ThermalConfig = namedtuple('ThermalConfig', ['cpu', 'gpu', 'mem', 'bat', 'pmic'])
88
NetworkType = log.DeviceState.NetworkType
99

1010

system/hardware/pc/hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def shutdown(self):
5757
print("SHUTDOWN!")
5858

5959
def get_thermal_config(self):
60-
return ThermalConfig(cpu=((None,), 1), gpu=((None,), 1), mem=(None, 1), bat=(None, 1), ambient=(None, 1), pmic=((None,), 1))
60+
return ThermalConfig(cpu=((None,), 1), gpu=((None,), 1), mem=(None, 1), bat=(None, 1), pmic=((None,), 1))
6161

6262
def set_screen_brightness(self, percentage):
6363
pass

system/hardware/tici/hardware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ def get_thermal_config(self):
349349
gpu=(("gpu0-usr", "gpu1-usr"), 1000),
350350
mem=("ddr-usr", 1000),
351351
bat=(None, 1),
352-
ambient=("xo-therm-adc", 1000),
353352
pmic=(("pm8998_tz", "pm8005_tz"), 1000))
354353

355354
def set_screen_brightness(self, percentage):

0 commit comments

Comments
 (0)