Skip to content

Commit

Permalink
clean clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Aug 1, 2024
1 parent 3b1849e commit 8f2563b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
extern crate nalgebra as na;
extern crate rand;
extern crate rerun;

use na::{Matrix3, Rotation3, UnitQuaternion, Vector3};
use nalgebra::{Matrix3, Rotation3, UnitQuaternion, Vector3};
use rand_distr::{Distribution, Normal};
struct Quadrotor {
position: Vector3<f32>,
Expand Down Expand Up @@ -95,15 +91,15 @@ impl Quadrotor {
}
}

struct IMU {
struct Imu {
accel_bias: Vector3<f32>,
gyro_bias: Vector3<f32>,
accel_noise_std: f32,
gyro_noise_std: f32,
bias_instability: f32,
}

impl IMU {
impl Imu {
pub fn new() -> Self {
Self {
accel_bias: Vector3::zeros(),
Expand Down Expand Up @@ -650,7 +646,7 @@ fn log_data(
fn main() {
let mut quad = Quadrotor::new();
let mut controller = PIDController::new();
let mut imu = IMU::new();
let mut imu = Imu::new();
let rec = rerun::RecordingStreamBuilder::new("quadrotor_simulation")
.connect()
.unwrap();
Expand Down

0 comments on commit 8f2563b

Please sign in to comment.