Skip to content

Commit

Permalink
Remove error message when timestamp_sample > timestamp
Browse files Browse the repository at this point in the history
When using an external IMU which is not power on by the autopilot,
the timestamp_sample can be greater that autopilot's
  • Loading branch information
Samuel Toledano authored and tolesam committed Feb 18, 2025
1 parent c8e8b08 commit 8802af5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/modules/sensors/vehicle_imu/VehicleIMU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,6 @@ bool VehicleIMU::UpdateAccel()
PX4_ERR("%d - accel %" PRIu32 " timestamp error timestamp_sample: %" PRIu64 ", previous timestamp_sample: %" PRIu64,
_instance, accel.device_id, accel.timestamp_sample, _accel_timestamp_sample_last);
}

if (accel.timestamp < accel.timestamp_sample) {
PX4_ERR("%d - accel %" PRIu32 " timestamp (%" PRIu64 ") < timestamp_sample (%" PRIu64 ")",
_instance, accel.device_id, accel.timestamp, accel.timestamp_sample);
}
}

_accel_last_generation = _sensor_accel_sub.get_last_generation();
Expand Down Expand Up @@ -447,11 +442,6 @@ bool VehicleIMU::UpdateGyro()
PX4_ERR("%d - gyro %" PRIu32 " timestamp error timestamp_sample: %" PRIu64 ", previous timestamp_sample: %" PRIu64,
_instance, gyro.device_id, gyro.timestamp_sample, _gyro_timestamp_sample_last);
}

if (gyro.timestamp < gyro.timestamp_sample) {
PX4_ERR("%d - gyro %" PRIu32 " timestamp (%" PRIu64 ") < timestamp_sample (%" PRIu64 ")",
_instance, gyro.device_id, gyro.timestamp, gyro.timestamp_sample);
}
}

_gyro_last_generation = _sensor_gyro_sub.get_last_generation();
Expand Down

0 comments on commit 8802af5

Please sign in to comment.