Looking for some help as I am trying to write some ascent and plane-change scripts. What I want is for the craft to burn until the apoapsis is located directly above the equator. I have been doing some basic research, but I am brand new to KoS and computer language in general and having some tough times. Here is what I have been trying:
//First I tried the general POSITIONAT(SHIP, APOAPSIS), but then saw a negative return on the Y,
//so I tried to minus the SHIP:BODY:POSITION to get a good value, but then realized the Y value it returned was not a readout of the latitude
//I then tried this, but again, to no avail
SET varname TO POSITIONAT(SHIP, APOAPSIS) - SHIP:BODY:POSITION.
WAIT UNTIL varname:Y < 1000.
LOCK THROTTLE TO .2.
WAIT UNTIL varname:Y < 100.
LOCK THROTTLE TO 0.
Does anyone know a better way of telling KoS what my future latitude will be at Apoapsis? (while burning)