mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
sensors/vehicle_imu: continue integrating gyro if there's a gap in data
- minor improvement that helps to determine the sensor publication rate as soon as possible
This commit is contained in:
@@ -192,7 +192,7 @@ void VehicleIMU::Run()
|
||||
}
|
||||
|
||||
// check for additional updates and that we're fully caught up before publishing
|
||||
if (consume_all_gyro && _sensor_gyro_sub.updated()) {
|
||||
if ((consume_all_gyro || _data_gap) && _sensor_gyro_sub.updated()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user