- ID: enc03r 
 
- Name: ENC03R Single Axis Gyro 
 
- Other Names: Grove Single Axis Analog Gyro 
 
- Category: compass 
 
- Manufacturer: seeed 
 
- Connection: analog 
 
- Kit: robok
 
UPM module for the ENC03R single axis analog gyro. This gyroscope measures x-axis angular velocity, that is how fast the sensor is rotating around the x-axis. Calibration of the sensor is necessary for accurate readings.
 
  
  
  
  cout << "Please place the sensor in a stable location, and do not" << endl;
  cout << "move it while calibration takes place." << endl;
  cout << "This may take a couple of minutes." << endl;
  cout << "Calibration complete.  Reference value: " 
  
  
  while (shouldRun)
    {
      unsigned int val = gyro->
value();
 
      cout << "Raw value: " << val << ", "  
           << "angular velocity: " << av << " deg/s" << endl;
      
      usleep(100000);
    }