Comment the code of get imu range
This commit is contained in:
		
							parent
							
								
									8d945fe042
								
							
						
					
					
						commit
						3c670cedb3
					
				@ -35,8 +35,8 @@ Motions::~Motions() {
 | 
				
			|||||||
void Motions::SetMotionCallback(motion_callback_t callback) {
 | 
					void Motions::SetMotionCallback(motion_callback_t callback) {
 | 
				
			||||||
  motion_callback_ = callback;
 | 
					  motion_callback_ = callback;
 | 
				
			||||||
  if (motion_callback_) {
 | 
					  if (motion_callback_) {
 | 
				
			||||||
    accel_range = channels_->GetControlValue(Option::ACCELEROMETER_RANGE);
 | 
					    // accel_range = channels_->GetControlValue(Option::ACCELEROMETER_RANGE);
 | 
				
			||||||
    gyro_range = channels_->GetControlValue(Option::GYROSCOPE_RANGE);
 | 
					    // gyro_range = channels_->GetControlValue(Option::GYROSCOPE_RANGE);
 | 
				
			||||||
    channels_->SetImuCallback([this](const ImuPacket &packet) {
 | 
					    channels_->SetImuCallback([this](const ImuPacket &packet) {
 | 
				
			||||||
      if (!motion_callback_ && !motion_datas_enabled_) {
 | 
					      if (!motion_callback_ && !motion_datas_enabled_) {
 | 
				
			||||||
        LOG(WARNING) << "";
 | 
					        LOG(WARNING) << "";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user