ok , so i was making this code and it turns out that vizzy dont separate the stage when it has , and if i change something it separates the stage so early , i was using the feedback that andrew told me onthe vrevious une of using ''<'' but i triend everitthing and it keeps with the same problems
this is the code:

PD: i tried with = and > to and it has the same problem adn also inverting the thing but it dont work

Bug Rejected Found in 0.9.200.0
Sandbox View

9 Comments

  • Log in to leave a comment
  • Profile image

    @AndrewGarrison thx

    4.8 years ago
  • Profile image

    @diegoavion84 Unfortunately, I really can't help answer all programming questions, but I will help with this last one. You could add a while instruction and put the if-check inside that. And get rid of the wait until 100000 < orbit [periapsis]. For example:

    • while orbit [periapsis] < 100000

      • if altitude [agl] >= 120000 then

        -- set craft [Pitch] to -5

      • wait 0 seconds

    4.8 years ago
  • Profile image

    @AndrewGarrison this is all the program https://cdn.discordapp.com/attachments/610923348591116316/680529265728553004/20200221183957_1.jpg

    the problem is that the craft once it gets to 120km it just ignore that

    also , how i make a loop?

    4.8 years ago
  • Profile image

    @diegoavion84 I'm not seeing all the code, but that appears that the if statement is only checked once. It should be in some kind of loop so that it can be checked every frame.

    4.8 years ago
  • Profile image

    @AndrewGarrison also do you know ho to make this to work? , i want to make that if the craft reaches 120 km turn pitch to -5 but it dont know how to make it work

    4.8 years ago
  • Profile image

    @AndrewGarrison with 0.1 dont work but with 1 it does , now i seems to be fixed , thx

    4.8 years ago
  • Profile image

    Ah, I see. It's possible that the fuel levels haven't recalculated yet immediately after an Activate Stage instruction. What if you follow the Actiavte Stage with a Wait 0.1 seconds?

    4.8 years ago
  • Profile image

    @AndrewGarrison when i did that the separaiton happens just a few seconds after liftoff making this to happen https://cdn.discordapp.com/attachments/610923348591116316/680497815926997002/20200221163405_1.jpg

    4.8 years ago
  • Profile image

    You can compare something to exactly zero, because something like fuel cannot go below zero so it will be exactly zero when fuel runs out. In other words, use = 0 or <= 0 instead of < 0. Fuel cannot be negative, which is what < 0 is checking for.

    4.8 years ago

No Upvotes

Log in in to upvote this post.