Advanced Question Autopilot help, converting inclination to a launch heading

It is re-arranged for you already on the page to solve for azimuth:
11b0e07f9c2997625f2e198700f10f7a.png

Does that help?
 
Dosent help much, Im not that great at math but it seems like
it would be TargetHeading = asin(cos(DesiredInclination)/cos(LaunchLatitude))
but its not returning what is should so I am guessing Its wrong
 
TargetHeading = asin(cos(DesiredInclination)/cos(LaunchLatitude))
Your formula is correct, so there is an error in the way you are doing the actual calculation. Most likely errors:
  1. Incorrect operator precedence - more likely to happen if you are calculating by hand. Your equation above looks OK if that is the actual code you are using.
  2. Incorrect units - many maths libraries expect angular units to be in radians instead of degrees. Do your input units match what the functions are expecting?
 
works alot better when used correctly! I was using degrees for the heading.
Thanks so much!
 
Back
Top