Difference between revisions of "Pos Rate PID controller"

From MultiWii
Jump to: navigation, search
(First attempt to explain tuning POS rate PID, with some help from EOSBandi's old documents...)
 
(Pos Rate PID Tuning)
Line 6: Line 6:
  
 
The speed of movement is controlled by the Pos PI controller, while the attitude of the multirotor is controlled by Pos Rate.
 
The speed of movement is controlled by the Pos PI controller, while the attitude of the multirotor is controlled by Pos Rate.
 +
 +
When the multirotor is within the defined distance of a waypoint (setting GPS_WP_RADIUS in config.h) the Pos Rate PID is used, when further away from the GPS hold location the Nav Rate PID is used to return to within the defined waypoint radius.
  
 
* To tune the Pos Rate PID, initially set P, I and D values to 0.
 
* To tune the Pos Rate PID, initially set P, I and D values to 0.

Revision as of 23:07, 26 September 2015

Pos Rate PID Tuning

The Pos Rate PID controller takes the commanded speed output from the Pos PI controller and commands an attitude in order to move towards the position hold location. This PID controller should be tuned before adjusting the Pos PI controller.

The Pos Rate PID functions in a similar manner to the Pitch and Roll PID settings. It controls how the attitude of the multirotor is changed in order to move towards the desired hold location.

The speed of movement is controlled by the Pos PI controller, while the attitude of the multirotor is controlled by Pos Rate.

When the multirotor is within the defined distance of a waypoint (setting GPS_WP_RADIUS in config.h) the Pos Rate PID is used, when further away from the GPS hold location the Nav Rate PID is used to return to within the defined waypoint radius.

  • To tune the Pos Rate PID, initially set P, I and D values to 0.
  • Gradually increase P until the multirotor begins to position hold with some drift.
  • Gradually increase D until the multirotor responds more quickly to undesired changes in attitude caused by the wind. If this value is set too high you will see oscillations in pitch and roll motion.
  • If needed, gradually increase I value to allow the PID controller to compensate for long lasting error, ie if it is being blown by the wind.