Using Vissy, how can I make my craft burn at the exact Time-To-Apoapsis so that it gets a perfectly circular orbit? My current programs just burns at a set Time-To-Apoapsis until the periapsis is close to apoapsis, but that doesn't account for different payload weights/TWR, etc. Often, if it's not timed correctly, I get an elliptical (e.g 120km x 700km) orbit, or it just doesn't get an orbit at all.
I'm looking for a consistent way to autonomously get different payloads to a certain circular orbit.
Do:
wait until [time to apoapsis] < 3
Set throttle to 1
Wait until |apoapsis| =< |periapsis|
Set throttle to 0
Note that this won't give you a perfect orbit, but depending on your engine type and size, you might barely notice it