Page 1 of 1

attitude_pid_controller.c question

Posted: Sun May 20, 2018 8:39 am
by Sexydove
Hello, nice to meet you. However, I am going to skip a little greetings because I have a kind of urgent question.

I have a question about

attitudeControllerReset **** AttitudePID (void)
in attitude_pid_controller.c.

I understand the pidreset (& pidRoll) when the contents in **** are 'roll' but why is not pidreset (& pidPitch) for 'Pitch'?
What is the intent of the actual quadrotor control to drive the same motion?

Code: Select all

void attitudeControllerResetRollAttitudePID(void)
{
    pidReset(&pidRoll);
}

void attitudeControllerResetPitchAttitudePID(void)
{
    pidReset(&pidRoll);
}

Re: attitude_pid_controller.c question

Posted: Mon May 21, 2018 11:19 am
by tobias
Looks like a copy/paste bug!