change the range of accel
This commit is contained in:
@@ -52,9 +52,9 @@ void Motions::SetMotionCallback(motion_callback_t callback) {
|
||||
imu->temperature = seg.temperature / 326.8f + 25;
|
||||
|
||||
if(imu->flag == 1) {
|
||||
imu->accel[0] = seg.aceel_or_gyro[0] * 8.f / 0x10000;
|
||||
imu->accel[1] = seg.aceel_or_gyro[1] * 8.f / 0x10000;
|
||||
imu->accel[2] = seg.aceel_or_gyro[2] * 8.f / 0x10000;
|
||||
imu->accel[0] = seg.aceel_or_gyro[0] * 12.f / 0x10000;
|
||||
imu->accel[1] = seg.aceel_or_gyro[1] * 12.f / 0x10000;
|
||||
imu->accel[2] = seg.aceel_or_gyro[2] * 12.f / 0x10000;
|
||||
imu->gyro[0] = 0;
|
||||
imu->gyro[1] = 0;
|
||||
imu->gyro[2] = 0;
|
||||
|
||||
Reference in New Issue
Block a user