mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 02:22:09 +08:00
Laikad: dont log when filter is not initialized
old-commit-hash: f10283072e4519ad95566dd0d54dbc7f52566f6d
This commit is contained in:
@@ -141,8 +141,9 @@ class Laikad:
|
||||
# Check time and outputs are valid
|
||||
valid = self.kf_valid(t)
|
||||
if not all(valid):
|
||||
|
||||
if not valid[1]:
|
||||
if not valid[0]: # Filter not initialized
|
||||
pass
|
||||
elif not valid[1]:
|
||||
cloudlog.error("Time gap of over 10s detected, gnss kalman reset")
|
||||
elif not valid[2]:
|
||||
cloudlog.error("Gnss kalman filter state is nan")
|
||||
|
||||
Reference in New Issue
Block a user