(self, imu_msg)
| 215 | self.accel_readings.append(imu_msg.linear_acceleration) |
| 216 | |
| 217 | # if the timestamp jump is too large, it means the IMU is not working properly |
| 218 | if self.imu_last_received_timestamp is not None and current_timestamp - self.imu_last_received_timestamp > 0.1: |
| 219 | delta_timestamp = current_timestamp - self.imu_last_received_timestamp |
| 220 | self.get_logger().warning(f"IMU timestamp jump {delta_timestamp} s is too large, it means the IMU is not working properly") |
| 221 | self.imu_last_received_timestamp = current_timestamp |
nothing calls this directly
no test coverage detected