can't understand "static void stabilizerTask(void* param)"

Post here to get support
Post Reply
momowang
Beginner
Posts: 1
Joined: Fri Mar 28, 2014 9:17 am

can't understand "static void stabilizerTask(void* param)"

Post by momowang »

hi :
i can't understand the "c" source " if (yawType == RATE) { yawRateDesired = -eulerYawDesired; }"//why?
could you give me some help?
thank you.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: can't understand "static void stabilizerTask(void* param

Post by tobias »

If you mean why there is a minus in "-eulerYawDesired" it is because the mapping in the driver layer was made wrong and it was corrected there. Something we should probably fix.

If you wander what the if state does, it bypasses the attitude PID and places it in "rate" mode for yaw.
Post Reply