mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:33:33 +08:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user