News for hackers. Stuff that matters.
Re:Making a brain for my model plane by monk_e_boy on Thursday November 06, 2014 @08:20AM (#8566847)
How do you deal with the feedback loop? How do you avoid over adjusting making the plane go crazy?
Re:Making a brain for my model plane by lgeek on Thursday November 06, 2014 @08:29AM (#8566881)
I don't know about this particular project, but the standard approach is to use a PID controller, which uses the derivative term to control overshooting and oscilations.
Re:Making a brain for my model plane by jonny5532 on Thursday November 06, 2014 @08:39AM (#8566921)
(Jonny the author here)

At the moment the control is proportional - the microcontroller works out the difference between the desired angle (set by the pilot on the ground) and the actual angle (as reported by the IMU algorithm fed by the gyro/accelometer). This error signal is then scaled and sent to the aileron servos.

The USB flight-controller I am using has a spare knob on it so I can adjust the scaling coefficient in flight. It still isn't perfect (as the video at the bottom demonstrates) - it veers to the right, probably because the IMU isn't held down very well!