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

No description.

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
    235 bspawn

    This version has 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.

    Updated version:
    https://www.simplerockets.com/c/yAfQxN/Vizzy-circular-orbit-demo

    4.4 years ago
  • Profile image
    235 bspawn

    Not directly related to this demo craft and code: in the code i use 'While stage fuel > 0' to make a stage do what i think it is supposed to do until its fuel runs out. Seems like a sensible thing and works well for the first stage (TWR limiter), but does not work for the second stage: the While loop is skipped.
    The workaround i found is to use 'fuel AllStages' instead of 'fuel Stage' for the 2nd stage and within the loop check for fuel AllStages < 0.001 and break out of the loop if true. Without that check the loop never ends. Also this only works because it is a 2 stage rocket...

    4.4 years ago

No Upvotes

Log in in to upvote this post.