Skip to content

Commit

Permalink
rename PIDController
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Jul 31, 2024
1 parent 1a683c3 commit a029b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl IMU {
}
}

struct Controller {
struct PIDController {
kp_pos: Vector3<f32>,
kd_pos: Vector3<f32>,
kp_att: Vector3<f32>,
Expand All @@ -169,7 +169,7 @@ struct Controller {
max_integral_att: Vector3<f32>,
}

impl Controller {
impl PIDController {
fn new() -> Self {
Self {
kp_pos: Vector3::new(7.1, 7.1, 11.9),
Expand Down Expand Up @@ -310,7 +310,7 @@ fn log_data(
}
fn main() {
let mut quad = Quadrotor::new();
let mut controller = Controller::new();
let mut controller = PIDController::new();
let mut imu = IMU::new();
let rec = rerun::RecordingStreamBuilder::new("quadrotor_simulation")
.connect()
Expand Down

0 comments on commit a029b53

Please sign in to comment.