NickRehm
Member
You will probably need to retune your control gains because your motors/escs are slightly different than what the original PIDs were tuned for. In the control mixer, for hover and transition flight modes, try using these gains for the rate controller:
Kp_roll_rate = 0.2; //Roll P-gain - rate mode
Ki_roll_rate = 0.3; //Roll I-gain - rate mode
Kd_roll_rate = 0.00013; //Roll D-gain - rate mode (be careful when increasing too high, motors will begin to overheat!)
Kp_pitch_rate = 0.15; //Pitch P-gain - rate mode
Ki_pitch_rate = 0.2; //Pitch I-gain - rate mode
Kd_pitch_rate = 0.00013; //Pitch D-gain - rate mode (be careful when increasing too high, motors will begin to overheat!)
These are reduced P, and increased D from the default, to hopefully prevent the oscillations you are seeing. You may need to tweak them further. If it still oscillates, reduce Kp for whichever axis is oscillating by about 0.03
Kp_roll_rate = 0.2; //Roll P-gain - rate mode
Ki_roll_rate = 0.3; //Roll I-gain - rate mode
Kd_roll_rate = 0.00013; //Roll D-gain - rate mode (be careful when increasing too high, motors will begin to overheat!)
Kp_pitch_rate = 0.15; //Pitch P-gain - rate mode
Ki_pitch_rate = 0.2; //Pitch I-gain - rate mode
Kd_pitch_rate = 0.00013; //Pitch D-gain - rate mode (be careful when increasing too high, motors will begin to overheat!)
These are reduced P, and increased D from the default, to hopefully prevent the oscillations you are seeing. You may need to tweak them further. If it still oscillates, reduce Kp for whichever axis is oscillating by about 0.03