Skip to content

About Angle Rate Controller (Observer Design) #324

Answered by krichardsson
doltae09 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
thanks for the kind words!

I think you probably want to dig in somewhere around here in controller_pid.c

It looks like the call to attitudeControllerCorrectRatePID() is doing the angle rate updates (when calling pidUpdate()) and thus running the "angle rate controller". The result from the angle rate controller is stored in the static variables rollOutput, pitchOutput and yawOutput that finally are read back using the attitudeControllerGetActuatorOutput() function.

(I think it is fair to say that there is room for improvements for this code...)

I'm not exactly sure where your data lives, but if it is in controller_pid.c I guess you can just add more arguments to attitudeControllerCorr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by krichardsson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants