attitude_pid_controller.c question

Discussions about all things Bitcraze
Post Reply
Sexydove
Beginner
Posts: 8
Joined: Wed Apr 25, 2018 10:36 pm

attitude_pid_controller.c question

Post 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);
}
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: attitude_pid_controller.c question

Post by tobias »

Looks like a copy/paste bug!
Post Reply