Advertisement
space_is_hard

CMLSreadout

Mar 27th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. //CMLS READOUT
  2. //Version 0.1
  3.  
  4. PRINT FLOOR(SHIP:ALTITUDE) + "   " AT(6,2).
  5.  
  6. IF ALTITUDE <=50000 {       //Prints surface velocity below 50km, orbital above
  7.     PRINT ROUND(VELOCITY:SURFACE:MAG,1) + "   " AT(22,2).
  8. } ELSE {
  9.     PRINT ROUND(VELOCITY:ORBIT:MAG,1) + "   " AT(22,2).
  10. }. //IF-ELSE
  11.  
  12. PRINT missionClock AT(39,2).
  13. PRINT activeStage AT(6,3).
  14. PRINT ROUND((loxRemaining * 100), 1) + "%  " AT(22,3).
  15.  
  16. IF fairingSep = FALSE {         //Prints ATCHD or SPRTD depending on whether the fairings are still on
  17.     PRINT "ATCHD" + "   " AT(39,3).
  18. } ELSE {
  19.     PRINT "SPRTD" + "   " AT(39,3).
  20. }. //IF-ELSE
  21.  
  22. WAIT (1 / updateRes).       //Update resolution turned into fraction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement