09-Jul-2016, 11:52 AM
Hi,
I am building a quadrotor for first time and I implemented rate mode successfully…
The problem is I can’t implement angle mode over the rate mode!
Rate mode works great, but when I enable angle mode, quadrotor is too slow to stabilize with some overshoot. It takes a few second to go to desired angle and when I release the stick, it returns in the same way…
This is what I did in code:
rate_needed = PIDcalculate(&pid_roll_stab, desired_angle, current_angle);
pwm_for_roll = PIDcalculate(&pid_roll_rate, -rate_needed , current_rate_gyro);
Rate PID has P,I coefficents and Angle PID has P for now…
I have not any blackbox log or video...
Thank you
I am building a quadrotor for first time and I implemented rate mode successfully…
The problem is I can’t implement angle mode over the rate mode!
Rate mode works great, but when I enable angle mode, quadrotor is too slow to stabilize with some overshoot. It takes a few second to go to desired angle and when I release the stick, it returns in the same way…
This is what I did in code:
rate_needed = PIDcalculate(&pid_roll_stab, desired_angle, current_angle);
pwm_for_roll = PIDcalculate(&pid_roll_rate, -rate_needed , current_rate_gyro);
Rate PID has P,I coefficents and Angle PID has P for now…
I have not any blackbox log or video...
Thank you