Skip to content

Commit

Permalink
v1.1.1 (internal)
Browse files Browse the repository at this point in the history
Added `lineUpdate` variable so the countdown timer will print in the proper position depending on whether a warning message was shown or not
  • Loading branch information
Gaiiden committed Sep 10, 2014
1 parent 0bab021 commit 902519d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RCSThrustController.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set isp to 270. // available via right-click menu on thrusters
set e to 2.7182.
set thrustLength to 0.
set bNodeExist to false.
set lineUpdate to 3.

clearscreen.
print "RCS Thrust Control Initializing...".
Expand Down Expand Up @@ -73,6 +74,7 @@ if nextnode:eta < tempNode:eta
wait 0.5.
}.
print "WARNING!" at (0,2).
set lineUpdate to 4.
}.

// compute the time needed for the thrust
Expand All @@ -85,8 +87,8 @@ if nextnode:eta < tempNode:eta
{
if timeRemaining >= 0
{
print " " at (0,4).
print "Time remaining until thrust: " + timeRemaining:Clock at (0,4).
print " " at (0,lineUpdate).
print "Time remaining until thrust: " + timeRemaining:Clock at (0,lineUpdate).
}.

wait 0.001.
Expand Down

0 comments on commit 902519d

Please sign in to comment.