413 downloads
Auto Credit Based on bspawn's Vizzy bug 'while fuel Stage / AllStages

small bug fix

GENERAL INFO

PERFORMANCE

  • Total Delta V: 5.5km/s
  • Total Thrust: 349kN
  • Engines: 2
  • Wet Mass: 24,380kg
  • Dry Mass: 3,143kg

STAGES

Stage Engines Delta V Thrust Burn Mass
1 1 3.3km/s 301kN 2.4m 24,380kg
3 1 2.3km/s 48kN 2.2m 4,213kg

2 Comments

  • Log in to leave a comment
  • Profile image

    Thanks a lot for this! It has really helped me to learn more about Vizzy! @bspawn

    3.7 years ago
  • Profile image
    235 bspawn

    Craft description:

    It still requires some tweaking, but a close to perfect circular orbit can be achieved much easier than tweaking a series of events that rely on 'wait x seconds'. Example: with intended apoapsis at 85km and intended periapsis at 84km, a ~87 by ~87 km orbit can be reached.

    -

    pseudo code:

    Have heading locked on prograde

    Last phase of ascent: burn until intended apoapsis is reached

    set variable: Intended orbital velocity =~ 3450m/s (for ~85km circular orbit)

    set variable: TTAfactor =~ 40 (tweak to adjust from how many seconds before reaching Apo the burn will take place) (TTA means Time To Apoapsis)


    While current orbital velocity is below intended orbital velocity:

    Calculated burn moment in seconds before reaching Apo = (intended orbital velocity - current orbital velocity) / TTAfactor

    Burn when TTA is less than calculated burn moment (take into account that burn may still be occurring when Apo has been passed, in which case TTA is large; so include check for TTA >= a few minutes). If tweaked correctly, burn will pulse while calculated burn moment hovers around actual TTA.

    When current periapsis is larger than 40000 or thereabout, engage low throttle setting (to reduce overshooting of Apo and Peri)

    (optional: to compensate for low TWR, have a pitchup time window relative to TTA; lock heading on current, set pitch, return to lock on prograde after pitchup window)

    When current periapsis is equal or larger than intended periapsis, stop burn and exit this While loop

    (End While)

    screenshot of Vizzy circularization segment:
    https://steamcommunity.com/sharedfiles/filedetails/?id=1939698450
    The screenshot contains a bug in the code - 'set throttle to 0' just above 'break' at the end of the While loop should be just below (outside) the While loop.

    4.9 years ago

3 Upvotes

Log in in to upvote this post.