Skip to content

Commit

Permalink
Made CF2 PID tuning a bit less aggressive and a fallback with old PID
Browse files Browse the repository at this point in the history
settings for kalman estimator.
  • Loading branch information
tobbeanton committed Sep 8, 2016
1 parent 5f34c6f commit 83c188a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/interface/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <stdbool.h>

#ifdef PLATFORM_CF2
#if defined(PLATFORM_CF2) && !defined (ESTIMATOR_TYPE_kalman)

#define PID_ROLL_RATE_KP 250.0
#define PID_ROLL_RATE_KI 500.0
Expand All @@ -46,17 +46,17 @@
#define PID_YAW_RATE_KD 0.0
#define PID_YAW_RATE_INTEGRATION_LIMIT 166.7

#define PID_ROLL_KP 10
#define PID_ROLL_KI 4.0
#define PID_ROLL_KP 6.0
#define PID_ROLL_KI 3.0
#define PID_ROLL_KD 0.0
#define PID_ROLL_INTEGRATION_LIMIT 20.0

#define PID_PITCH_KP 10
#define PID_PITCH_KI 4.0
#define PID_PITCH_KP 6.0
#define PID_PITCH_KI 3.0
#define PID_PITCH_KD 0.0
#define PID_PITCH_INTEGRATION_LIMIT 20.0

#define PID_YAW_KP 10.0
#define PID_YAW_KP 6.0
#define PID_YAW_KI 1.0
#define PID_YAW_KD 0.35
#define PID_YAW_INTEGRATION_LIMIT 360.0
Expand Down

0 comments on commit 83c188a

Please sign in to comment.