Acc / Gyro range setting

Firmware/software/electronics/mechanics
Post Reply
mrmks
Beginner
Posts: 13
Joined: Fri Jun 03, 2016 7:08 pm

Acc / Gyro range setting

Post by mrmks »

Hello,
I'd like to set higher maximum acceleration and gyro ranges.

I'm looking crazyflie-firmware/src/drivers/src/mpu6050.c
Right now,

Code: Select all

MPU6050_GCONFIG_FS_SEL_BIT = 4
and

Code: Select all

MPU6050_GCONFIG_FS_SEL_LENGTH = 2
It looks like I just need to change one of these values to 3 for the gyro, but which one is it?
I'm looking at the

Code: Select all

mpu6050GetFullScaleGyroRangeId()
Also, how about changing the max range for the accelerometer?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Acc / Gyro range setting

Post by tobias »

The rangers are defined here. As of really resent the ranges was set to maximum the MPU9250 supports (2000 deg/s and 16g).
Post Reply