Advanced Question Autopilot help, converting inclination to a launch heading

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
It is re-arranged for you already on the page to solve for azimuth:
11b0e07f9c2997625f2e198700f10f7a.png

Does that help?
 

virii2k

New member
Joined
Feb 16, 2010
Messages
60
Reaction score
0
Points
0
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
 

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
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?
 

virii2k

New member
Joined
Feb 16, 2010
Messages
60
Reaction score
0
Points
0
works alot better when used correctly! I was using degrees for the heading.
Thanks so much!
 
Top