KSP-KOS / KSLib

The standard library and examples for the Kerboscript language
MIT License
120 stars 40 forks source link

lib_lazcalc: Auto north/south switch based on velocity #105

Closed bfrobin446 closed 5 years ago

bfrobin446 commented 7 years ago

Handles potentially surprising behavior when a craft needs to transition between northward and southward headings during ascent (Issue #104).

scimas commented 5 years ago

It might be better to do this based on the proximity to ascending or descending node. If the ship is closer to ascending node, the northward azimuth is required, and the southward for the descending node. This way it doesn't rely on the parameter. (Even as the code is now, it does the switch anyway with the if data[5] line.) @bfrobin446 if you're still active here, would you like to tackle this?