forked from mawei/dp
1
0
Fork 0

just ignore them

This commit is contained in:
eFini 2021-12-29 15:13:18 +10:00 committed by GitHub
parent 4726cd898f
commit 3633a11f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -284,11 +284,11 @@ class Controls:
if not self.sm['lateralPlan'].mpcSolutionValid:
self.events.add(EventName.steerTempUnavailable if self.sm['dragonConf'].dpAtl else EventName.plannerError)
if not self.dp_jetson and not self.sm['liveLocationKalman'].sensorsOK and not NOSENSOR:
if self.sm.frame > 5 / DT_CTRL: # Give locationd some time to receive all the inputs
self.events.add(EventName.sensorDataInvalid)
if not self.dp_jetson and not self.sm['liveLocationKalman'].posenetOK:
self.events.add(EventName.posenetInvalid)
#if not self.sm['liveLocationKalman'].sensorsOK and not NOSENSOR:
# if self.sm.frame > 5 / DT_CTRL: # Give locationd some time to receive all the inputs
# self.events.add(EventName.sensorDataInvalid)
#if not self.sm['liveLocationKalman'].posenetOK:
# self.events.add(EventName.posenetInvalid)
if not self.sm['liveLocationKalman'].deviceStable:
self.events.add(EventName.deviceFalling)
if log.PandaState.FaultType.relayMalfunction in self.sm['pandaState'].faults: