while i absolutely suck at vizzy i decided to make a simple auto orbit program that adapts to the current atmosphere height... however, there's a few issues.
essentially, when the rocket reaches 20% of the atmosphere's height, it begins the gravity turn, and adjusts its pitch for more horizontal acceleration at 50% and 80% of the atmosphere height as well, alongside reducing throttle for lower fuel consumption (the demo craft's engine bas been XML'd to have low fuel consumption since it's just a demo).
it then checks if the apoapsis and periapsis are 2000 meters or more above the atmosphere's end, and if they aren't, it locks on prograde and applies throttle once they are (i haven't gotten to making this section fully fledged out yet, just made the basis of it)
however, the problem is that immediately after launching the program automatically skips to the final stage of the gravity turn (80% of atmo height) rather than following it from start to finish, despite me launching from only 400 meters above sea level with an atmosphere height of 112 km (yes i'm doing this on Merak from Mortan lol)...
soooooooo what am i doing wrong?
here's the craft if you want to check it out yourself
UPDATE: i improved it
it actually works now, the orbit isn't circular but that was expected, i made this purely for the auto orbit and to ensure that the final orbit will be above the atmosphere but leave everything else to the player. i also added variables to let players configure the different throttle and atmosphere height values
@Zenithspeed good to hear that ,feel free to ask me if you have any other vizzy problems