Skip to content

Commit

Permalink
Tune quadrotor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed Jun 1, 2024
1 parent d2921aa commit abd701c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user/quadrotor/quadrotor.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ typedef struct {

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

static pid_control_t pid_pitch = {
.kp = 0.008f,
.kd = 0.0035f,
.kd = 0.003f,
.output_max = +1.0f,
.output_min = -1.0f,
.enable = true,
Expand Down Expand Up @@ -319,7 +319,7 @@ void flight_control_task(void)
setprogname("flight control");

/* Initialize Madgwick Filter for attitude estimation */
madgwick_init(&madgwick_ahrs, 400, 0.13);
madgwick_init(&madgwick_ahrs, 400, 0.105);

/* Open RGB LED */
int led_fd = open("/dev/led", 0);
Expand Down

0 comments on commit abd701c

Please sign in to comment.