EKF: replace reset event times with event counters

Using a 64bit integer was unnecessary given it was only being used to detect a new reset event.
This commit is contained in:
Paul Riseborough
2016-06-01 17:13:00 +10:00
parent 70f76e1a6c
commit 6a55d908c5
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ void Ekf::controlExternalVisionAiding()
}
// capture the reset event
_state_reset_status.quat_time_us = _imu_sample_delayed.time_us;
_state_reset_status.quat_counter++;
// flag the yaw as aligned
_control_status.flags.yaw_align = true;