Skip to content

Commit

Permalink
Tune quadrotor PID controller
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed Jun 1, 2024
1 parent a80d7b9 commit 0eac893
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions user/quadrotor/quadrotor.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ typedef struct {
} pid_control_t;

static pid_control_t pid_roll = {
.kp = 0.015f,
.kd = 0.003f,
.kp = 0.008f,
.kd = 0.0035f,
.output_max = +1.0f, //+100%
.output_min = -1.0f, //-100%
.enable = true,
};

static pid_control_t pid_pitch = {
.kp = 0.015f,
.kd = 0.003f,
.kp = 0.008f,
.kd = 0.0035f,
.output_max = +1.0f,
.output_min = -1.0f,
.enable = true,
};

static pid_control_t pid_yaw_rate = {
.kp = 0,
.kp = 0.02f,
.output_max = +1.0f,
.output_min = -1.0f,
.enable = true,
Expand Down

0 comments on commit 0eac893

Please sign in to comment.