gyroscope känslighet

This commit is contained in:
Thefeli73 2021-04-19 17:14:06 +02:00
parent bc7a9a6ec4
commit 1bf3f51783

View File

@ -16,7 +16,8 @@ void gyro_setup(){
} }
Serial.println("MPU6050 Found!"); Serial.println("MPU6050 Found!");
mpu.setAccelerometerRange(MPU6050_RANGE_4_G); //mpu.setAccelerometerRange(MPU6050_RANGE_4_G);
mpu.setAccelerometerRange(MPU6050_RANGE_16_G);
Serial.print("Accelerometer range set to: "); Serial.print("Accelerometer range set to: ");
switch (mpu.getAccelerometerRange()) { switch (mpu.getAccelerometerRange()) {
case MPU6050_RANGE_2_G: case MPU6050_RANGE_2_G:
@ -32,7 +33,8 @@ void gyro_setup(){
Serial.println("+-16G"); Serial.println("+-16G");
break; break;
} }
mpu.setGyroRange(MPU6050_RANGE_500_DEG); //mpu.setGyroRange(MPU6050_RANGE_500_DEG);
mpu.setGyroRange(MPU6050_RANGE_2000_DEG);
Serial.print("Gyro range set to: "); Serial.print("Gyro range set to: ");
switch (mpu.getGyroRange()) { switch (mpu.getGyroRange()) {
case MPU6050_RANGE_250_DEG: case MPU6050_RANGE_250_DEG: