MCPcopy Create free account
hub / github.com/UniflexAI/tinynav / _aligned_imu_callback

Method _aligned_imu_callback

tinynav/core/perception_node.py:217–218  ·  view source on GitHub ↗
(self, imu_msg)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_process_imu_msgMethod · 0.95

Tested by

no test coverage detected