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 | + | -- Lua script for chapter 2 of Go Play in Space |
+ | -- | ||
− | |||
− | |||
− | |||
-- Author: David Murley | -- Author: David Murley | ||
+ | |||
-- Date: 7/01/2019 | -- Date: 7/01/2019 | ||
+ | |||
-- Version: 1.1 | -- Version: 1.1 | ||
+ | |||
-- | -- | ||
+ | |||
-- | -- | ||
Line 14: | Line 16: | ||
-- Get access to the Delta Gliders GL-01 and GL-02. With the interface handles | -- Get access to the Delta Gliders GL-01 and GL-02. With the interface handles | ||
+ | |||
-- obtained, access to various controls and flight data are acquired. | -- obtained, access to various controls and flight data are acquired. | ||
Line 27: | Line 30: | ||
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 37: | Line 41: | ||
-- Kill Rotation | -- Kill Rotation | ||
+ | |||
term.out('Kill Rotation') | term.out('Kill Rotation') | ||
Line 73: | Line 78: | ||
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 205: | ||
term.out ('End Script') | term.out ('End Script') | ||
− | |||
− | |||
− | |||
− |