fix: get_gyro convert error
This commit is contained in:
parent
bc49e17aa9
commit
dfeeec0202
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ where
|
|||
pub fn get_gyro(&mut self) -> Result<Vector3<f32>, Mpu6050Error<E>> {
|
||||
let mut gyro = self.read_rot(GYRO_REGX_H)?;
|
||||
|
||||
gyro *= PI_180 * self.gyro_sensitivity;
|
||||
gyro *= PI_180 / self.gyro_sensitivity;
|
||||
|
||||
Ok(gyro)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue