This commit is contained in:
Your Name
2024-05-04 03:54:14 -05:00
parent 826b869bfc
commit 4c4ce5979f

View File

@@ -264,10 +264,13 @@ def calibration_incomplete_alert(CP: car.CarParams, CS: car.CarState, sm: messag
def no_gps_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: def no_gps_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
# Clearpilot todo:
# Fix gps issue.
# put this notice in the tiny bar.
return Alert( return Alert(
"Poor GPS reception", "Poor GPS reception",
"Hardware malfunctioning if sky is visible", "Hardware malfunctioning if sky is visible",
AlertStatus.normal, AlertSize.small, AlertStatus.normal, AlertSize.none,
Priority.LOWER, VisualAlert.none, AudibleAlert.none, .2, creation_delay=300.) Priority.LOWER, VisualAlert.none, AudibleAlert.none, .2, creation_delay=300.)
def torque_nn_load_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: def torque_nn_load_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: