Modules-old/Microstrain/Microstrain.cpp
////////////////////////////////////////////////////////////////////////////////
// Send a packet and wait for a reply from the IMU.
// Returns the number of bytes read.
Send a packet and wait for a reply from the IMU.
Returns the number of bytes read.
Send a packet and wait for a reply from the IMU . Returns the number of bytes read .
int Microstrain::transact(void *cmd, int cmd_len, void *rep, int rep_len, int timeout)
{
  send(cmd, cmd_len);
  return receive(*(uint8_t*)cmd, rep, rep_len, timeout);
}
int Microstrain :: transact ( void * cmd , int cmd_len , void * rep , int rep_len , int timeout ) { send ( cmd , cmd_len ) ; return receive ( * ( uint8_t * ) cmd , rep , rep_len , timeout ) ; }
Send a packet and wait for a reply from the IMU.
Send a packet and wait for a reply from the IMU .