kOS-scripts/orbital_maneuvers.ks
Casper V. Kristensen 804455c125
Fix file permissions.
2019-02-07 22:10:16 +01:00

25 lines
974 B
Plaintext

@LAZYGLOBAL OFF.
run once "lib/equations".
run once "lib/node".
function change_orbit {
//
// Change current orbit. Set parameter to -1 to maintain the current value
//
parameter inclination is ORBIT:inclination. // vertical tilt of the orbit with respect to the equator
parameter eccentricity is ORBIT:eccentricity. // how circular the orbit is (e=0 circular)
parameter periapsis is ORBIT:periapsis. // lowest point in the orbit
parameter lan is 0. // longitude of ascending node; the longitude where the orbit crosses the equator northwards
parameter argument_of_periapsis is ORBIT:argumentofperiapsis. // the angle from the ascending node to the periapsis, measured in the direction of motion
print inclination.
print eccentricity.
print periapsis.
print lan.
print argument_of_periapsis.
}
change_orbit().