thermald: show temp value in offroad alert (#28664)

* thermald: show temp value in offroad alert

* update

* better for multilang

* update translations

---------

Co-authored-by: Comma Device <device@comma.ai>
pull/28686/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent c9f02ae905
commit 4464383833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/lib/alerts_offroad.json
  2. 4
      selfdrive/thermald/thermald.py
  3. 8
      selfdrive/ui/translations/main_de.ts
  4. 8
      selfdrive/ui/translations/main_ja.ts
  5. 8
      selfdrive/ui/translations/main_ko.ts
  6. 8
      selfdrive/ui/translations/main_pt-BR.ts
  7. 8
      selfdrive/ui/translations/main_zh-CHS.ts
  8. 8
      selfdrive/ui/translations/main_zh-CHT.ts

@ -1,6 +1,6 @@
{
"Offroad_TemperatureTooHigh": {
"text": "Device temperature too high. System won't start.",
"text": "Device temperature too high. System cooling down before starting. Current internal component temperature: %1",
"severity": 1
},
"Offroad_ConnectivityNeededPrompt": {

@ -295,7 +295,9 @@ def thermald_thread(end_event, hw_queue):
# if the temperature enters the danger zone, go offroad to cool down
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not onroad_conditions["device_temp_good"]))
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)
# TODO: this should move to TICI.initialize_hardware, but we currently can't import params there
if TICI:

@ -436,10 +436,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation type="unfinished"></translation>
@ -489,6 +485,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

@ -435,10 +435,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation type="unfinished"></translation>
@ -488,6 +484,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

@ -435,10 +435,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation> .</translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation> . %1 openpilot이 .</translation>
@ -489,6 +485,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation>openpilot이 . . </translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

@ -436,10 +436,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation>Temperatura do dispositivo muito alta. Sistema não iniciará.</translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation>Conecte-se imediatamente à internet para verificar se atualizações. Se você não se conectar à internet em %1 não será possível acionar o openpilot.</translation>
@ -490,6 +486,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation>O openpilot detectou uma mudança na posição de montagem do dispositivo. Verifique se o dispositivo está totalmente encaixado no suporte e se o suporte está firmemente preso ao para-brisa.</translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

@ -435,10 +435,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation type="unfinished"></translation>
@ -488,6 +484,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

@ -435,10 +435,6 @@
</context>
<context>
<name>OffroadAlert</name>
<message>
<source>Device temperature too high. System won&apos;t start.</source>
<translation></translation>
</message>
<message>
<source>Immediately connect to the internet to check for updates. If you do not connect to the internet, openpilot won&apos;t engage in %1</source>
<translation>openpilot %1 便使</translation>
@ -489,6 +485,10 @@
<source>openpilot detected a change in the device&apos;s mounting position. Ensure the device is fully seated in the mount and the mount is firmly secured to the windshield.</source>
<translation>openpilot偵測到設備的安裝位置發生變化</translation>
</message>
<message>
<source>Device temperature too high. System cooling down before starting. Current internal component temperature: %1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OffroadHome</name>

Loading…
Cancel
Save