warnings--
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use core::cell::RefCell;
|
||||
use core::u8;
|
||||
|
||||
use embassy_embedded_hal::shared_bus::asynch::i2c::I2cDevice;
|
||||
use embassy_sync::{blocking_mutex::raw::CriticalSectionRawMutex, channel::DynamicSender};
|
||||
@@ -7,11 +6,7 @@ use embassy_time::{Delay, Timer, Instant};
|
||||
use esp_hal::{i2c::master::I2c, Async};
|
||||
use log::*;
|
||||
use mpu6050_dmp::{address::Address, calibration::CalibrationParameters, error_async::Error, sensor_async::Mpu6050};
|
||||
use mpu6050_dmp::{
|
||||
calibration::CalibrationActions,
|
||||
accel::Accel,
|
||||
gyro::Gyro
|
||||
};
|
||||
use mpu6050_dmp::calibration::CalibrationActions;
|
||||
use nalgebra::Vector3;
|
||||
use core::f32::consts::PI;
|
||||
use crate::events::SensorSource;
|
||||
@@ -134,7 +129,7 @@ async fn mpu_init(sensor: &mut Mpu6050<I2cDevice<'static, CriticalSectionRawMute
|
||||
info!("DMP initialized in {}ms", start.as_millis());
|
||||
warn!("Calibrating MPU from scratch");
|
||||
let start = Instant::now();
|
||||
let calibration_data = backoff.attempt(async || {
|
||||
let _calibration_data = backoff.attempt(async || {
|
||||
// TODO: Store calibration data with set_accel_calibration, set_gyro_calibration
|
||||
let mut actions = CalibrationActions::all();
|
||||
let mut accel;
|
||||
|
||||
Reference in New Issue
Block a user