Linkageless Posted February 14 Share Posted February 14 Dear Kerbal megaminds, I've been working on some KOS scripts for a variety of vessels and in many cases have a need to adjust inclination to match an equatorial plane or that of another vessel's orbit. I'm aware of methods to achieve this using iteration, aka "Hill Climbing", but was hoping to achieve this with calculated manoeuvres. I'm struggling to establish a clear recipe to calculating the manoeuvres, in particular the ETA to the Ascending and Descending Nodes. I know there's maths to achieve this, and have stared vacantly at many pages of this including the wikipedia articles on Keplerian orbits. I'm not confident I can identify how to obtain from KOS the exact values required for these and how to piece it all together in a meaningful way. I've seen numerous examples using trig to calculate elements of what is needed (at a time when there were less Keplerian parameters available in KOS). I am aware that there's the added complication in KOS of converting radians to degrees or vice-versa. My attempts to follow others' advice on various reddit and forum posts have ended up in miserable and embarrassing failure. Miserable as it doesn't work, and embarrassing because I can't even begin to fathom why. At this point, what I would like is an actual working example of a KOS script that creates a manoeuvre to correct inclination with reference to an AN or DN. I appreciate that the titular "ETA:AscendingNode" does not exist (although it has been requested). An ideal would be including this as part of a overall orbit match process, but just achieving a standalone inclination match would be the missing piece of the puzzle for me. There is apparently a reasonably intuitive way of achieving this through vector calculations, and I've seen reference (https://github.com/KSP-KOS/KOS/issues/153) to a script called mtkv3 that is sadly no longer there. Again, I've drawn a blank when attempting this approach. If someone could point me to a complete working example of either the trig or vector approach to this, it would save my tired old brain from complete meltdown. I could then begin to understand how this is achieved by study of the code, I dare say maybe even tailor it to my own needs/desires! Sorry for the rambling post and thank you in advance!! Quote Link to comment Share on other sites More sharing options...
Linkageless Posted Sunday at 02:16 PM Author Share Posted Sunday at 02:16 PM In case it helps, I'm going to attempt to visualise the problem using vecdraw to hopefully point to the next AN or DN. At that point, the challenge is to work out how to get time to that intersection with my orbit. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.