I typed this up for myself a while back. Maybe it will be useful to you.
To launch the space shuttle automatically, you need to have the LuaMFD
module enabled. From the Orbiter Launchpad, select Modules and click
the checkbox next to LuaMFD under the MFD modes section.
Pick an Atlantis scenario and launch orbiter. The new MFD is listed as
Terminal MFD, not as Lua MFD. Start Terminal MFD and use the following:
If you just want to see the shuttle launch itself, you can just do this:
1. <INP> run('atlantis/launch') <enter>
2. <INP> launch() <enter>
That will launch the shuttle into orbit using a heading of 90 degrees
and an apoapsis of 300 kilometers. That's a perfectly reasonable set
of orbital parameters if you just want to get into orbit automatically.
If you want to get into orbit automatically and then "play around"
once you're there, you will want to disable the automatic OMS-2 burn.
So use this instead:
1. <INP> run('atlantis/launch') <enter>
2. <INP> do_oms2=false <enter>
3. <INP> launch() <enter>
That will launch the shuttle into orbit using the defaults, and the
script will exit as soon as the OMS-1 burn is done. (At which point
you can take control and play around.) You will know when the script is
done by looking at the upper right corner of the MFD. While the script
is running, it says "busy"
You can interact with the MFD's while the script is running. You can
bring up Orbit MFD and look at it, Map MFD and look at that, Surface
MFD, and so on. You can still control the shuttle while the script
is running, but you'll basically be "fighting" against the script if
you do.
When the OMS-1 burn is done, your Periapsis will probably be too low
for a stable orbit, but you'll have at least 30 to 60 minutes of real
time to play around before the shuttle reaches Periapsis. (You can
EASILY bring up the Periapsis by fast forwarding time to the apaoapsis,
then clicking the PRO GRD autopilot button, and applying some main
engine thrust to bring the Periapsis UP to a healthy altitude. Watch
the ApT variable to know when you are getting close to apoapsis. ApT
means something like Apoapsis Time (or Time until Apoapsis))
If you want to control the launch parameters (perhaps because you want
to rendezvous with the ISS), you can use the following:
1. <INP> run('atlantis/launch') <enter>
2. <INP> orbit_alt=220e3 <enter>
3. <INP> azimuth=43*RAD <enter>
4. <INP> do_oms1=false <enter>
5. <INP> do_oms2=false <enter>
6. <INP> launch() <enter>
If you want a different Orbit Altitude, you can change 220e3 to whatever
you need. (220e3 means 220000. (e3 is scientific notation. 1e3 = 1000))
The azimuth is the heading. If you want to rendezvous with the ISS,
you will probably want a heading of about 43 degrees. (You can use
Launch MFD to determine the best launch heading for rendezvousing with
the ISS.)
The OMS-1 burn is done after reaching orbital velocity, and separating
from the ET. This burn brings the shuttle up to your target Orbital
Altitude. (Which isn't always necessary. A lot of times, you will reach
Orbital Altitude as part of the main launch sequence. If you listen
to a NASA launch sequence, you'll often hear "OMS-1 is not required."
shortly after MECO and ET separation.)
If needed, the OMS-1 burn is done immediately after reaching orbital
velocity, so (unlike the OMS-2 burn), you don't have to wait a long
time for the OMS-1 burn to start. So leaving it enabled is not a big
deal, but if you'd rather control that burn manually, you can set it to
false.
If rendezvousing with the ISS, I think it's best to set oms1 to false
also. When the script does the OMS-1 burn, it yaws the Shuttle to the
heading specified by the azimuth variable before doing the burn. (I
don't really understand why it would do that.) But in any event, because
it does that, it messes up your plane alignment.
The OMS-2 burn is the orbit circularization burn that is done at
periapsis. This is simple to do manually, so we disable it. If you
don't disable it, then you have to let the launch continue to play out
at 1x all the way until the OMS-2 burn is complete. (It will take
about 45 minutes to reach periapsis after the launch is complete. That's
a long time to sit and wait. If you use time acceleration with the
script enabled, the OMS-2 burn will screw up.)
If you want to learn to launch manually, try these videos. (Pardon my voice. I have a ton of lung/throat/breathing related health problems.)
[ame="http://www.youtube.com/watch?v=Ta5-oflWWdQ"]Orbiter 2010 - Beginner Guide - Launching the Space Shuttle - Part 3 - YouTube[/ame]