https://en.wikipedia.org/wiki/Azimuth
This was the where I got the basic formula for the autopilot. My code would make adjustments for altitude and recalculate but it just wasn't working as well as it should have. To fix this, when it came close to the desired altitude it would thrust a little...
Ok, Ive changed the code to constantly recalculate the launch azimuth.....
Seems to be alot better. Still a slight mis-calculation somewhere but I think recalculating
is the way to go.
Switching to the launch azmuth of a base Im passing over 500km away would put the vessel way off course. I wouldnt be at ground level.
The current autopilot has less the 0.01 slip angle for most of the first half of ascent. So changing the heading 0.01 during the ascent stage wouldnt make much...
Payload weight and thrust do have an impact on the launch azmuth.
The launch azmuth can be off by as much as 0.1 degrees per 1000kg of payload weight.
The auto pilot makes minor adjustments to the launch azmuth depending on the payload weight. If you launch the Delta IV Heavy with an 8000kg...
The code defines a "box" region for individual vessels.
The code only defines this for 4 vessels, the DG, shuttleA,PB, and ISS.
If its not one of these vessels, it uses a default VECTOR3.
LOL. Im gonna guess its me.:facepalm:
So your suggesting recalculate heading every once in a while?
Ive tryed so many ways of reaching the desired inclination and what I have now seems to work but, try launching to the ISS. You will get the same inclination but the orbital plane is off. I...