Modules-old/Microstrain/Microstrain.cpp
////////////////////////////////////////////////////////////////////////////////
// Take the IMU out of continuous mode
Take the IMU out of continuous mode
Take the IMU out of continuous mode
void
Microstrain::stopContinuous()
{
  uint8_t cmd[3];
  cmd[0] = CMD_STOP_CONTINUOUS;
  cmd[1] = 0x75; 
  cmd[2] = 0xB4; 
  send(cmd, sizeof(cmd));
  usleep(1000000);
  if (tcflush(fd, TCIOFLUSH) != 0)
    IMU_EXCEPT(microstrain_3dmgx3_imu::Exception, "Tcflush failed");
  continuous = false;
}
void Microstrain :: stopContinuous ( ) { uint8_t cmd [ 3 ] ; cmd [ 0 ] = CMD_STOP_CONTINUOUS ; cmd [ 1 ] = 0x75 ; cmd [ 2 ] = 0xB4 ; send ( cmd , sizeof ( cmd ) ) ; usleep ( 1000000 ) ; if ( tcflush ( fd , TCIOFLUSH ) != 0 ) IMU_EXCEPT ( microstrain_3dmgx3_imu :: Exception , " " ) ; continuous = false ; }
Take the IMU out of continuous mode
Take the IMU out of continuous mode
//Confirms user intent //Confirms user intent