mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
don't show on tici
This commit is contained in:
@@ -21,7 +21,7 @@ from selfdrive.controls.lib.alertmanager import AlertManager
|
||||
from selfdrive.controls.lib.vehicle_model import VehicleModel
|
||||
from selfdrive.controls.lib.planner import LON_MPC_STEP
|
||||
from selfdrive.locationd.calibrationd import Calibration
|
||||
from selfdrive.hardware import HARDWARE
|
||||
from selfdrive.hardware import HARDWARE, TICI
|
||||
|
||||
LDW_MIN_SPEED = 31 * CV.MPH_TO_MS
|
||||
LANE_DEPARTURE_THRESHOLD = 0.1
|
||||
@@ -247,7 +247,7 @@ class Controls:
|
||||
if not NOSENSOR:
|
||||
if not self.sm.alive['ubloxRaw'] and (self.sm.frame > 10. / DT_CTRL):
|
||||
self.events.add(EventName.gpsMalfunction)
|
||||
elif not self.sm['liveLocationKalman'].gpsOK and (self.distance_traveled > 1000):
|
||||
elif not self.sm['liveLocationKalman'].gpsOK and (self.distance_traveled > 1000) and not TICI:
|
||||
# Not show in first 1 km to allow for driving out of garage. This event shows after 5 minutes
|
||||
self.events.add(EventName.noGps)
|
||||
if not self.sm.all_alive(['frame', 'frontFrame']) and (self.sm.frame > 5 / DT_CTRL):
|
||||
|
||||
Reference in New Issue
Block a user