Live data from Hacker News

Making a brain for my model plane

story.glass

1–10 of 73 posts

Re: Making a brain for my model plane

#2
Building a drone, or robots is one of my dreams. I mean, as I programmer, I build things all the time. How awesome it would be to code something that ends up moving in the physical realm? Even better if it had some limited form of AI.

But I know nothing about hardware, and very very little about programming a UAV.

Re: Making a brain for my model plane

#5
That was interesting.

Layout didnt work so well on my note 3 with chrome, the image sections were pretty flawless but the text parts were a tad difficult to focus onn at times.

Definatly going to look it up on the pc though :-)

Re: Making a brain for my model plane

#6

Building a drone, or robots is one of my dreams. I mean, as I programmer, I build things all the time. How awesome it would be to code something that ends up moving in the physical realm? Even better if it had some limited form of AI. But I know nothing about hardware, and very very little about programming a UAV.

Sensors/Awareness of environment is where the dream dies. Not just in that sensors give very limited input, but that limited input is far more than you can practically use effectively without a team of PhDs and a few years. You end up making very greedy decisions about behavior based on sensor readings, which work great in a narrow context of places and behaviors, but generalize poorly to human spaces. UAVs are a little better because their "specific context" is a bit more broad than most (in the air, minimal turbulence, and nothing to hit). If you want a similar interesting problem where you could feel efficacy look at robotic blimps or boats, you can get kits!

Re: Making a brain for my model plane

#7

How do you deal with the feedback loop? How do you avoid over adjusting making the plane go crazy?

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

#8

How do you deal with the feedback loop? How do you avoid over adjusting making the plane go crazy?

(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!

Post reply on HN