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:
Daniel Agar
2021-06-29 21:28:29 -04:00
parent 7ddcb7fe3c
commit d87cd171f4
@@ -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;
}