Comment the code of get imu range

This commit is contained in:
Kalman 2018-08-18 22:59:19 +08:00
parent 8d945fe042
commit 3c670cedb3

View File

@ -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) << "";