From 3c670cedb39aa4931a46aee4a7fad15ab01488e7 Mon Sep 17 00:00:00 2001 From: Kalman Date: Sat, 18 Aug 2018 22:59:19 +0800 Subject: [PATCH] Comment the code of get imu range --- src/internal/motions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/motions.cc b/src/internal/motions.cc index 7b2ad52..52d68b4 100644 --- a/src/internal/motions.cc +++ b/src/internal/motions.cc @@ -35,8 +35,8 @@ Motions::~Motions() { void Motions::SetMotionCallback(motion_callback_t callback) { motion_callback_ = callback; if (motion_callback_) { - accel_range = channels_->GetControlValue(Option::ACCELEROMETER_RANGE); - gyro_range = channels_->GetControlValue(Option::GYROSCOPE_RANGE); + // accel_range = channels_->GetControlValue(Option::ACCELEROMETER_RANGE); + // gyro_range = channels_->GetControlValue(Option::GYROSCOPE_RANGE); channels_->SetImuCallback([this](const ImuPacket &packet) { if (!motion_callback_ && !motion_datas_enabled_) { LOG(WARNING) << "";