Editing Lua Script for Orbit Stabilization
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
-- Lua script for chapter 2 of "Go Play in Space" - Orbit Stabilization | -- Lua script for chapter 2 of "Go Play in Space" - Orbit Stabilization | ||
-- | -- | ||
Line 27: | Line 23: | ||
continue = true | continue = true | ||
hDckPort = hGL1:get_dockhandle(0) | hDckPort = hGL1:get_dockhandle(0) | ||
+ | continue=true | ||
while continue do | while continue do | ||
hDckStatus=hGL1:get_dockstatus(hDckPort) | hDckStatus=hGL1:get_dockstatus(hDckPort) | ||
Line 73: | Line 70: | ||
hGL1:set_navmode(NAVMODE.PROGRADE) | hGL1:set_navmode(NAVMODE.PROGRADE) | ||
hGL2:set_navmode(NAVMODE.PROGRADE) | hGL2:set_navmode(NAVMODE.PROGRADE) | ||
− | proc.wait_simdt( | + | proc.wait_simdt(25) |
-- The following 14 lines set up the annotations that are used to display | -- The following 14 lines set up the annotations that are used to display | ||
Line 200: | Line 197: | ||
term.out ('End Script') | term.out ('End Script') | ||
− | |||
− | |||
− | |||
− |