wip
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 68 KiB |
@@ -321,6 +321,9 @@ def thermald_thread(end_event, hw_queue) -> None:
|
||||
|
||||
# if the temperature enters the danger zone, go offroad to cool down
|
||||
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
|
||||
|
||||
onroad_conditions["device_temp_good"] = False
|
||||
|
||||
extra_text = f"{offroad_comp_temp:.1f}C"
|
||||
show_alert = (not onroad_conditions["device_temp_good"] or not startup_conditions["device_temp_engageable"]) and onroad_conditions["ignition"]
|
||||
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", show_alert, extra_text=extra_text)
|
||||
|
||||
@@ -46,6 +46,14 @@ void ReadyWindow::paintEvent(QPaintEvent *event) {
|
||||
|
||||
// Draw the pixmap at the calculated position.
|
||||
painter.drawPixmap(x, y, comma_img);
|
||||
|
||||
// TODO: Referencw widgets/offroad_alert.cc
|
||||
// std::string bytes = params.get(key);
|
||||
// if params value Offroad_TemperatureTooHigh is set with bytes > 0, then
|
||||
// temp is too high. show hot.png. Add current temp to the right of the logo.
|
||||
// otherwise, if offroad_alert widget would otherwise display, then ditch the ready.cc
|
||||
// screen and go to home.cc.
|
||||
|
||||
}
|
||||
|
||||
void ReadyWindow::showEvent(QShowEvent *event) {
|
||||
|
||||
Reference in New Issue
Block a user