Exemplo n.º 1
0
void Imu::zero()
{
  // zero (calibrate) gyro
  CPhidgetSpatial_zeroGyro(imu_handle_);
}
Exemplo n.º 2
0
void Spatial::zero()
{
	// zero (calibrate) gyro
	CPhidgetSpatial_zeroGyro(spatial_handle_);
}
Exemplo n.º 3
0
// Zero the gyroscope when the service is called
// The procedure takes 1-2 seconds and the IMU should not move during the process
bool calibrate_gyroscope(std_srvs::Empty::Request& request, std_srvs::Empty::Response& response)
{
  CPhidgetSpatial_zeroGyro(spatial);
}