mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-26 20:43:49 +08:00
编辑selfdrived.py
This commit is contained in:
@@ -427,7 +427,7 @@ class SelfdriveD(CruiseHelper):
|
||||
if CS.canTimeout:
|
||||
self.events.add(EventName.canBusMissing)
|
||||
elif not CS.canValid:
|
||||
self.events.add(EventName.canError)
|
||||
pass#self.events.add(EventName.canError)
|
||||
|
||||
# generic catch-all. ideally, a more specific event should be added above instead
|
||||
has_disable_events = self.events.contains(ET.NO_ENTRY) and (self.events.contains(ET.SOFT_DISABLE) or self.events.contains(ET.IMMEDIATE_DISABLE))
|
||||
@@ -457,7 +457,7 @@ class SelfdriveD(CruiseHelper):
|
||||
if not self.sm['deviceMotion'].posenetOK:
|
||||
self.events.add(EventName.posenetInvalid)
|
||||
if not self.sm['deviceMotion'].inputsOK:
|
||||
self.events.add(EventName.locationdTemporaryError)
|
||||
pass#self.events.add(EventName.locationdTemporaryError)
|
||||
if (not self.sm['vehicleParameters'].valid and cal_status == log.ExtrinsicsCalibration.Status.calibrated and
|
||||
not TESTING_CLOSET and (not SIMULATION or REPLAY)):
|
||||
self.events.add(EventName.paramsdTemporaryError)
|
||||
|
||||
Reference in New Issue
Block a user