kOS-scripts/orbital_maneuvers.ks

25 lines
974 B
Plaintext
Raw Normal View History

2018-07-27 21:32:14 +02:00
@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
2018-07-27 21:32:14 +02:00
print inclination.
print eccentricity.
print periapsis.
print lan.
2018-07-27 21:32:14 +02:00
print argument_of_periapsis.
}
change_orbit().