Posted by wardhanster on September 17, 2009 at 3:37pm
Hi guys, this is the 1st post on this forum and have been expecting a lot from the experts over here, while i was going thru this site , the question "what is the logic behind the navigation system?" hit me and it hit me hard, i was thinking over it and many ideas came and passed by , still havent figured out how "THIS SYSTEM" actually works, so i thought to spit it out here.can some one tell me what is the algorithm behind the waypoint navigation... like how you control the heading of the airplane w.r.t longitude and latitude... i mean to say is how you all control navigation controls such that the airplane navigates to the selected waypoint.
You need to be a member of diydrones to add comments!
okay got my algorithm, but how do we find the distance (displacement) between destination and current position, i mean what is the formula behind this?
It's pretty simple. You figure out where your plane is heading with the GPS and where your target is. You do a little math and figure out if it's to your left or right, higher or lower. Turn the rudder, tweak the elevator, then repeat over and over until you reach the waypoint. Everything else is using more math to make it happen smoother, faster, more reliably.
See the wikipedia entry on PID loops to learn more about the basics. The rest is just linear algebra, trig, vectors, etc.
Replies
See the wikipedia entry on PID loops to learn more about the basics. The rest is just linear algebra, trig, vectors, etc.