EKF: Use common timeout test for reporting deadreckoning

Use a parameter to set the time-out threshold
Use a class variable for the time-out flag
Clean up comments
This commit is contained in:
Paul Riseborough
2017-03-15 07:57:38 +01:00
committed by Lorenz Meier
parent 6ac7e2f807
commit 040639837e
5 changed files with 33 additions and 44 deletions
+1
View File
@@ -73,6 +73,7 @@ EstimatorInterface::EstimatorInterface():
_tas_test_ratio(0.0f),
_terr_test_ratio(0.0f),
_beta_test_ratio(0.0f),
_is_dead_reckoning(false),
_vibe_metrics{},
_time_last_imu(0),
_time_last_gps(0),