Guidance file tutorial?

Do you mean guidance files for multistage rockets?
Something like this?:
Code:
-17=PlaySound(SoundVesselmimascount.wav)
-7=engine(0,100,4)
5=roll(3,90,90,80,1)
21=pitch(83,2,110)
29=engine(100,84,5)
39=PlaySound(SoundVesselM1.wav)
47=engine(84,100,5)
48=PlaySound(SoundVesselGTO.wav)
120=PlaySound(SoundVesselSRBSEP.wav)
121=PlaySound(SoundVesselSRB.wav)
122=Target(250)
123=aoa(3)
145=PlaySound(SoundVesselNR.wav)
157=PlaySound(SoundProjectApolloTowerJet.wav)
158=PlaySound(SoundProjectApolloApollo11window.wav)
165.5=PlaySound(SoundVesselSTAGESEP.wav)
311.5=PlaySound(SoundVesselSTAGESEP.wav)
397.5=PlaySound(SoundVesselSTAGESEP.wav)
400=jettison()
424.5=engine(100,-1,1)
424.6=engine(0.1,0,1)
424.7=engine(0,-1,1)
425=PlaySound(SoundVesselGFO.wav)
426=Disable(pitch)
427=Disable(roll)
 
OK this is from the multistage manual:
Guidance Autopilot
Introduction
Multistage is supporting a guidance system which is configurable through a text file.
This is a preliminary version of the software. I know much functions have still not been tested
or implemented.

How to use it

The guidance system is foreseen to automate all the launch. It must be started before the
launch by typing the ‘P’ key. It can be turned off by pushing again the ‘P’ key but in this case
it will not be possible to turn it on again.
The guidance file format is detailed hereafter, the guidance file to be used must be specified in
the scenario file by adding a line like the following one in the ship section :

GUIDANCE_FILE Configmultistageshuttle.txt

The guidance file

Each line as the following format :
<mission elapsed time>=<command>(param1,param2,…)
The mission elapsed time is specified in seconds and negative values can be used for
operation before launch (main engine start sequence, sound play).
The following commands are supported:

engine(starting_thrust, final_thrust, thrusting_time)

This will control the thrust of the main engine varying it from the value indicated in
“starting_thrust” to the value indicated in “final_thrust” in a time duration defined in
“thrusting_time”. Thrust is indicated in percent and must be between 0 and 100.

roll(init_pitch_time,init_pitch_angle,heading_target,pitch_target,pitch_mode)

This will control the roll program. The launcher is pitched in the direction indicated by
“pitch_mode” (1=pitch up, -1=pitch_down) until it reach the “init_pitch_angle”(in °), then the
pitch guidance loop is closed and the pitch is controlled to reach the pitch target. When the “
init_pitch_time” is elapsed, the roll and yaw guidance are closed to reach the proper heading
target. This is a complex manoeuvre and setting bad parameters can lead to a catastrophic roll.
Take care that the next command must not be issued before the roll is complete.

pitch(starting_pitch,final_pitch,pitch_time)

This will control the pitch program. The launcher is pitched from the “starting_pitch” to the
“final_pitch” in a time duration set by “pitch_time”
Note that the pitch segments should join gently together (that is the final_pitch of the previous
segment should be the starting_pitch of the next segment)

aoa(aoa_angle)

This will control the angle of attack to “aoa_angle” between the vessel zero angle of attack
axis (usually the z axis) and the speed vector.

spin(rate)

This will command the roll up to the specified roll rate (°/sec).You may use positive and
negative value to have left or right roll

attitude(pitch,heading,roll)

This will command the vessel attitude to the specified pitch, heading and roll all expressed in
degree in the range from -180° to 180° and measured in LVLH (local vertical, local horizontal
coordinates system).

Disable(<pitch|roll|jettison>)

This will command disable the specified program. It can be “pitch” program, “roll” program
or “jettison” program. Disable(jettison) means that there will be no automatic booster or stage
separation when fuel mass reach 0, all jettison command must be issued by the guidance
program using the command jettison()

Playsound(<sound file name>)

This will play the specified sound file name on the radio (OrbiterSound is required).

fairing()

This will command the fairing jettison (equivalent to the key command ‘F’)

jettison()

This will command the jettison of a payload (or stage if applied earlier into the flight, but it is
really a bad idea)

target(target_apogee)

Once called, this will constantly check for the current orbit parameters and will command a
stop of all engines when the “target_apogee” (in km above surface) is reached
 
HI,

Having a problem with the Target Command

Found the manual and this post and worked out the T needs to be capitalised, however I am not getting MECO when the ApA equals my target ApA. See my very simple file below

-6=engine(0,100,6)
4=roll(4,85,84.7,85,1)
10=pitch(85,70,10)
20=pitch(70,55,10)
30=pitch(55,40,10)
40=pitch(40,25,10)
50=pitch(25,10,10)
60=pitch(10,10,60)
120=pitch(10,0,10)
130=pitch(0,0,70)
140=fairing()
180=Target(225)
200=pitch(0,2,10)
210=pitch(2,2,150)

appritiate the help
 
Last edited:
Shameless Bump

HI All,

please see my query above. I have done some more experimentation regarding the running of the Target() program and timing the run to happen after the second stage has Jettisoned. But again no success.

I would really appritiate some help, perhaps someone could post some more successful scripts...

and, I won't bump this again...;)
 
Try spacing Target from (225) or put an underscore.
 
hi,

thanks for the tip. I'll try it out and let you know how it goes.

Thanks again
 
Back
Top