update example
This commit is contained in:
parent
f423a740db
commit
5398f1d472
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ fn main() -> Result<(), Mpu6050Error<LinuxI2CError>> {
|
||||||
mpu.soft_calib(100)?;
|
mpu.soft_calib(100)?;
|
||||||
mpu.calc_variance(50)?;
|
mpu.calc_variance(50)?;
|
||||||
|
|
||||||
println!("Calibrated with bias: {:?}", mpu.get_bias().take().unwrap());
|
println!("Calibrated with bias: {:?}", mpu.get_bias().unwrap());
|
||||||
println!("Calculated variance: {:?}", mpu.get_variance().take().unwrap());
|
println!("Calculated variance: {:?}", mpu.get_variance().unwrap());
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
// get roll and pitch estimate
|
// get roll and pitch estimate
|
||||||
|
|
Loading…
Reference in a new issue