selfdrive.thermald package

Subpackages

Submodules

selfdrive.thermald.fan_controller module

class selfdrive.thermald.fan_controller.BaseFanController[source]

Bases: ABC

abstract update(cur_temp: float, ignition: bool) int[source]
class selfdrive.thermald.fan_controller.TiciFanController[source]

Bases: BaseFanController

update(cur_temp: float, ignition: bool) int[source]

selfdrive.thermald.power_monitoring module

class selfdrive.thermald.power_monitoring.PowerMonitoring[source]

Bases: object

calculate(voltage: int | None, ignition: bool)[source]
get_car_battery_capacity() int[source]
get_power_used() int[source]
should_shutdown(ignition: bool, in_car: bool, offroad_timestamp: float | None, started_seen: bool)[source]

selfdrive.thermald.thermald module

class selfdrive.thermald.thermald.HardwareState(network_type, network_info, network_strength, network_stats, network_metered, nvme_temps, modem_temps)

Bases: tuple

modem_temps

Alias for field number 6

network_info

Alias for field number 1

network_metered

Alias for field number 4

network_stats

Alias for field number 3

network_strength

Alias for field number 2

network_type

Alias for field number 0

nvme_temps

Alias for field number 5

class selfdrive.thermald.thermald.ThermalBand(min_temp, max_temp)

Bases: tuple

max_temp

Alias for field number 1

min_temp

Alias for field number 0

selfdrive.thermald.thermald.hw_state_thread(end_event, hw_queue)[source]

Handles non critical hardware state, and sends over queue

selfdrive.thermald.thermald.main()[source]
selfdrive.thermald.thermald.populate_tz_by_type()[source]
selfdrive.thermald.thermald.read_thermal(thermal_config)[source]
selfdrive.thermald.thermald.read_tz(x)[source]
selfdrive.thermald.thermald.set_offroad_alert_if_changed(offroad_alert: str, show_alert: bool, extra_text: str | None = None)[source]
selfdrive.thermald.thermald.thermald_thread(end_event, hw_queue) None[source]

Module contents