示例#1
0
文件: imu.cpp 项目: GT-RAIL/carl_bot
void Imu::zero()
{
  // zero (calibrate) gyro
  CPhidgetSpatial_zeroGyro(imu_handle_);
}
示例#2
0
文件: Spatial.cpp 项目: SProst/FURI
void Spatial::zero()
{
	// zero (calibrate) gyro
	CPhidgetSpatial_zeroGyro(spatial_handle_);
}
示例#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);
}