Fix #1545, sensor alert on startup

old-commit-hash: 9f0eac90895d9fc4cc4ab782d61f31d3b5ab9685
This commit is contained in:
Willem Melching
2020-05-20 11:25:27 -07:00
parent 7abddc5c90
commit b2fb4632cd
+2 -1
View File
@@ -200,7 +200,8 @@ class Controls:
if not self.sm['pathPlan'].mpcSolutionValid:
self.events.add(EventName.plannerError)
if not self.sm['liveLocationKalman'].inputsOK and os.getenv("NOSENSOR") is None:
self.events.add(EventName.sensorDataInvalid)
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['pathPlan'].paramsValid:
self.events.add(EventName.vehicleModelInvalid)
if not self.sm['liveLocationKalman'].posenetOK: