Function OS1::read_imu_packet

Function Documentation

inline bool OS1::read_imu_packet(const client &cli, uint8_t *buf)

Read imu data from the sensor. Will not block.

Parameters
  • cli – client returned by init_client associated with the connection

  • buf – buffer to which to write imu data. Must be at least imu_packet_bytes + 1 bytes

Returns

true if an imu packet was successfully read