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]] by Bruce Irving, Andy McSorley, and Mark Paton for [[Orbiter|Orbiter Space Flight Simulator]].
+
-- Lua script for chapter 2 of Go Play in Space
 
 
 
 
<pre>
 
-- Lua script for chapter 2 of "Go Play in Space" - Orbit Stabilization
 
 
--
 
--
 
-- Author: David Murley
 
-- Author: David Murley
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(30)
+
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')
</pre>
 
 
[[Category: Articles]]
 
[[Category: Lua]]
 

Please note that all contributions to OrbiterWiki are considered to be released under the GNU Free Documentation License 1.2 (see OrbiterWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)