Skip to content

Commit

Permalink
Merge pull request #1011 from bitcraze/tobba/persitant_pid_fix_default
Browse files Browse the repository at this point in the history
Fixed default values for pitch and yaw attitude PIDs.
  • Loading branch information
knmcguire committed Mar 25, 2022
2 parents ea8cb47 + 5f3a2da commit 4d476a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/src/attitude_pid_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ PidObject pidRoll = {
};

PidObject pidPitch = {
.kp = PID_ROLL_KP,
.ki = PID_ROLL_KI,
.kd = PID_ROLL_KD,
.kp = PID_PITCH_KP,
.ki = PID_PITCH_KI,
.kd = PID_PITCH_KD,
};

PidObject pidYaw = {
.kp = PID_ROLL_KP,
.ki = PID_ROLL_KI,
.kd = PID_ROLL_KD,
.kp = PID_YAW_KP,
.ki = PID_YAW_KI,
.kd = PID_YAW_KD,
};

static int16_t rollOutput;
Expand Down

0 comments on commit 4d476a2

Please sign in to comment.