mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:43:34 +08:00
MPU6K driver: Ensure that default range is always 16g by default
This commit is contained in:
@@ -2631,7 +2631,7 @@ mpu6000_main(int argc, char *argv[])
|
|||||||
int device_type = MPU_DEVICE_TYPE_MPU6000;
|
int device_type = MPU_DEVICE_TYPE_MPU6000;
|
||||||
int ch;
|
int ch;
|
||||||
enum Rotation rotation = ROTATION_NONE;
|
enum Rotation rotation = ROTATION_NONE;
|
||||||
int accel_range = 8;
|
int accel_range = MPU6000_ACCEL_DEFAULT_RANGE_G;
|
||||||
|
|
||||||
/* jump over start/off/etc and look at options first */
|
/* jump over start/off/etc and look at options first */
|
||||||
while ((ch = getopt(argc, argv, "T:XISsZzR:a:")) != EOF) {
|
while ((ch = getopt(argc, argv, "T:XISsZzR:a:")) != EOF) {
|
||||||
|
|||||||
Reference in New Issue
Block a user