- Joined
- Jun 26, 2009
- Messages
- 1,045
- Reaction score
- 0
- Points
- 36
Hi!
I haven't posted for a while, but I think this is a good place to ask this question! I'm interested in the maths behind how autopilots work. Right now I'm interested in programming something that will simulate a plane intercepting a localiser and flying along it towards a runway (for a simple ATC game). The simulation is very simple - basically the heading, altitude and speed of the selected plane change at constant rates until they match the values you assign to them. This is OK for issuing commands to the planes but there comes a point where you need to clear them for approach along the ILS, and the heading needs to be controlled by some sort of autopilot.
I guess I could do it with a lot of if statements and conditionals but perhaps there's some more elegant theory behind this? Any good books on autopilot coding?
Thanks
I haven't posted for a while, but I think this is a good place to ask this question! I'm interested in the maths behind how autopilots work. Right now I'm interested in programming something that will simulate a plane intercepting a localiser and flying along it towards a runway (for a simple ATC game). The simulation is very simple - basically the heading, altitude and speed of the selected plane change at constant rates until they match the values you assign to them. This is OK for issuing commands to the planes but there comes a point where you need to clear them for approach along the ILS, and the heading needs to be controlled by some sort of autopilot.
I guess I could do it with a lot of if statements and conditionals but perhaps there's some more elegant theory behind this? Any good books on autopilot coding?
Thanks