Difference between revisions of "MD-500D/SL Features"

From
Jump to: navigation, search
(→‎Invoking)
(→‎Macros and Appliers)
Line 416: Line 416:
 
=== Macros and Appliers ===
 
=== Macros and Appliers ===
  
−
Macros and appliers can be used to execute fixed sequences of commands stored in notecards in the aircraft inventory. Both use the same command execution engine and support the same command syntax. They differ in their notecard name prefixes, invocation commands, access permissions, and intended use.
+
Macros and appliers can be used to execute sequences of commands stored in notecards in the aircraft inventory. Both use the same command execution engine and support exactly the same command language.
 +
 
 +
By convention, macros are used to automate aircraft operations and configure aircraft systems, while appliers are used to modify the appearance of the aircraft. There are no restrictions on which commands may be used in either type of notecard. For example, a macro may contain commands to change textures, and an applier may contain commands to operate aircraft switches.
 +
 
 +
The distinction between macros and appliers is in their notecard name prefixes, invocation commands, and access permissions.
  
 
{| class=wikitable
 
{| class=wikitable
Line 435: Line 439:
 
|Aircraft owner only
 
|Aircraft owner only
 
|-
 
|-
−
|Intended use
+
|Typical use
 
|Aircraft operation and configuration
 
|Aircraft operation and configuration
 
|Aircraft appearance and customization
 
|Aircraft appearance and customization
 
|}
 
|}
  
−
Appliers are primarily intended to set textures and otherwise modify the visual appearance of the aircraft, while macros are primarily intended to activate switches and controls to put the aircraft into a desired state. However, these are conventions rather than restrictions on the commands that may be used in either type of notecard.
 
 
==== Invoking ====
 
==== Invoking ====
  
−
To invoke an applier, use the command:
+
To invoke a macro, use the "exec" chat command followed by the name of the macro. For example:
 +
 
 +
exec auto
 +
 
 +
This will look for the notecard "*macro:auto" in the aircraft inventory and execute the commands contained in it.
 +
 
 +
Similarly, to invoke an applier, use the "apply" chat command followed by the name of the applier. For example:
  
 
  apply seats-white
 
  apply seats-white
  
−
This will look for the notecard "*apply:seats-white" in the aircraft inventory and execute commands from it. Similarly, use the command:
+
This will look for the notecard "*apply:seats-white" in the aircraft inventory and execute the commands contained in it.
−
 
 
−
exec auto
 
  
−
to invoke commands from the notecard "*macro:auto".
+
The notecard prefix is not included in the name when issuing either chat command.
  
 
==== Supplied Macros ====
 
==== Supplied Macros ====
Line 477: Line 484:
 
|}
 
|}
  
−
==== Commands ====
+
==== Creating Notecards ====
 +
 
 +
Custom macros and appliers may be created by preparing a notecard containing the desired sequence of commands and placing it in the aircraft inventory. The notecard name must begin with "*macro:" or "*apply:", depending on how it is to be invoked.
 +
 
 +
Each command is written on a separate line. Commands are executed sequentially in the order in which they appear in the notecard. Blank lines may be used to separate groups of related commands for readability.
 +
 
 +
A notecard may contain any combination of the supported commands, including commands to operate aircraft controls, modify textures and materials, display messages, test aircraft state, and wait for specified conditions.
 +
 
 +
==== Command Summary ====
 +
 
 +
The following commands are supported in both macro and applier notecards.
  
 
{| class=wikitable
 
{| class=wikitable
Line 483: Line 500:
 
!Description
 
!Description
 
|-
 
|-
−
|PUSH ''asgns'' || Executes a list of ; separated assignments.
+
|PUSH ''asgns''
 +
|Executes a semicolon-separated list of assignments.
 +
|-
 +
|style="white-space:nowrap;" |APPLY ''prim'':''face'':''type''=''uuid''
 +
|Applies a texture or material to the specified face of an aircraft component.
 
|-
 
|-
−
|style="white-space:nowrap;" |APPLY ''prim'':''face'':''type''=''uuid'' || Sets the ''type'' on the specified prim and face to the specified uuid. ''type'' can be one of diff/norm/spec for the Diffuse, Normal or Specular of legacy materials, or 'mat' for the PBR material.
+
|MESG ''mesg''
 +
|Displays the message ''mesg'' to the flight crew only.
 
|-
 
|-
−
|MESG ''mesg'' || Displays the message ''mesg'' to the flight crew only.
+
|SAY ''mesg''
 +
|Displays the message ''mesg'' in local chat.
 
|-
 
|-
−
|SAY ''mesg'' || Displays the message ''mesg'' on local chat.
+
|XPDR ''xpdr-cmd''
 +
|Sets a transponder code or operating mode.
 
|-
 
|-
−
|XPDR ''xpdr-cmd'' || Enters a transponder code, or executes a specific transponder command.
+
|SLEEP ''seconds''
 +
|Pauses execution for the specified number of seconds.
 
|-
 
|-
−
|SLEEP ''seconds'' || Sleeps for the specified number of seconds.
+
|WAIT ''seconds'' | ''cond''
 +
|Waits up to the specified number of seconds for the condition ''cond'' to become true. If the timeout expires, the ONFAIL handler, if defined, is executed and the macro is terminated.
 
|-
 
|-
−
|CMD ''command'' || Executes ''command'' as if it were a command typed in local chat.
+
|CMD ''command''
 +
|Executes ''command'' as if it were a command typed in local chat.
 
|-
 
|-
−
|ONFAIL ''asgns'' | ''mesg'' || Sets a behavior to execute when a REQUIRE command fails. ''asgns'' is a list of assignments to perform, and ''mesg'' is a message to display to the pilot.
+
|ONFAIL ''asgns'' | ''mesg''
 +
|Defines the failure handler to be executed if a subsequent WAIT command times out. ''asgns'' is a semicolon-separated list of assignments to perform, and ''mesg'' is a message to display to the flight crew.
 
|-
 
|-
−
|REQUIRE ''cond'' | ''fail-mesg'' || Tests to see if the condition ''cond'' is true. If not, the message ''fail-mesg'' is displayed to the crew and the commands configured by the ONFAIL command are executed before the macro is terminated.
+
|REQUIRE ''cond'' | ''fail-mesg''
 +
|Tests whether the condition ''cond'' is true. If false, displays the message ''fail-mesg'' to the flight crew and terminates execution. The ONFAIL handler is not executed.
 
|}
 
|}
  
−
===== APPLY =====
+
==== Assignments ====
 +
 
 +
Assignments are used by the PUSH and ONFAIL commands to set the values of aircraft variables. An assignment consists of a variable name followed by an equals sign and a value.
  
−
The following example applies a set of legacy and PBR materials to the pilot's seat:
+
''variable'' = ''value''
 +
 
 +
Multiple assignments may be separated by semicolons. For example:
 +
 
 +
PUSH throttle=0.0; batt=2; anticol=1; key=1;
 +
 
 +
This sets the throttle to fuel cutoff and sets the specified electrical and ignition switches to the indicated positions.
 +
 
 +
The value on the right-hand side of an assignment may be a numeric constant or the name of another aircraft variable. For example:
 +
 
 +
PUSH kollsman=pressure; dg=compass;
 +
 
 +
This sets the altimeter pressure setting to the current atmospheric pressure setting and aligns the directional gyro with the compass heading.
 +
 
 +
Arithmetic expressions are not currently supported. For example, the following assignment is not valid:
 +
 
 +
PUSH throttle=throttle+0.1;
 +
 
 +
==== Aircraft Variables ====
 +
 
 +
All switch names listed in the Switch Summary in the Appendix are available as variables in macros and appliers. Switch values correspond to the position numbers described in the [[#Switch Operation and Control|Switch Operation and Control]] section.
 +
 
 +
Additional variables provide access to aircraft controls, instrument settings, and system state.
 +
 
 +
Some variables are read-only. Read-only variables may be used in conditional expressions or as the source value in an assignment, but cannot be modified by PUSH or ONFAIL commands.
 +
 
 +
The following table lists some of the additional aircraft variables available for use in macros and appliers.
 +
 
 +
{| class=wikitable
 +
!Variable
 +
!Description
 +
!Values
 +
!Access
 +
|-
 +
|throttle
 +
|Engine throttle position.
 +
|0.0 to 1.0 (0.1 = ground idle)
 +
|Read/write
 +
|-
 +
|n1
 +
|Gas producer speed.
 +
|1.0 = 100%
 +
|Read-only
 +
|-
 +
|n2
 +
|Power turbine speed.
 +
|1.0 = 100%
 +
|Read-only
 +
|-
 +
|DCBus
 +
|DC bus power status.
 +
|Zero = unpowered
 +
|Read-only
 +
|-
 +
|havePilot
 +
|Authorized pilot present in the pilot seat.
 +
|Zero = false
 +
|Read-only
 +
|-
 +
|isEngineRunning
 +
|Engine running status.
 +
|Zero = false
 +
|Read-only
 +
|-
 +
|pressure
 +
|Current atmospheric pressure setting.
 +
|Pressure setting
 +
|Read-only
 +
|-
 +
|compass
 +
|Current compass heading.
 +
|Degrees
 +
|Read-only
 +
|-
 +
|kollsman
 +
|Altimeter pressure setting.
 +
|Pressure setting
 +
|Read/write
 +
|-
 +
|dg
 +
|Directional gyro heading.
 +
|Degrees
 +
|Read/write
 +
|}
 +
 
 +
Note that normalized values are used for certain variables. For example, a throttle position of 50% is represented by 0.5, and an N1 speed of 64% is represented by 0.64.
 +
 
 +
==== Conditional Expressions ====
 +
 
 +
The REQUIRE and WAIT commands evaluate conditional expressions. A conditional expression consists of two operands separated by a comparison operator. Each operand may be a numeric constant or an aircraft variable.
 +
 
 +
''operand'' ''operator'' ''operand''
 +
 
 +
The following comparison operators are supported:
 +
 
 +
{| class=wikitable
 +
!Operator
 +
!Description
 +
|-
 +
|==
 +
|Equal to
 +
|-
 +
|!=
 +
|Not equal to
 +
|-
 +
|<
 +
|Less than
 +
|-
 +
|<=
 +
|Less than or equal to
 +
|-
 +
|>
 +
|Greater than
 +
|-
 +
|>=
 +
|Greater than or equal to
 +
|}
 +
 
 +
Only simple comparisons are currently supported. Arithmetic expressions and compound expressions using logical AND or OR operators are not supported.
 +
 
 +
Multiple required conditions can be checked by issuing successive REQUIRE commands. For example:
 +
 
 +
REQUIRE isEngineRunning == 0 | Engine is already started.
 +
REQUIRE havePilot != 0 | Must have authorized pilot in pilot seat.
 +
 
 +
Both conditions must be satisfied for execution to continue.
 +
 
 +
==== Timing and Synchronization ====
 +
 
 +
The SLEEP and WAIT commands provide two different methods of delaying execution.
 +
 
 +
The SLEEP command pauses execution for a fixed period of time. For example:
 +
 
 +
SLEEP 5
 +
 
 +
This pauses execution for five seconds before proceeding to the next command.
 +
 
 +
The WAIT command pauses execution until a specified condition becomes true, subject to a maximum waiting time. For example:
 +
 
 +
WAIT 10 | n1 >= 0.12
 +
 
 +
This waits up to ten seconds for N1 to reach 12%. Execution continues as soon as the condition is satisfied. If the condition is already satisfied, execution can continue without waiting for the specified time to elapse.
 +
 
 +
If the condition is not satisfied within the allotted time, execution is terminated and the ONFAIL handler, if defined, is executed.
 +
 
 +
WAIT is particularly useful when automating aircraft operations whose completion times may vary depending on aircraft condition or operating circumstances.
 +
 
 +
==== Failure Handling ====
 +
 
 +
The command language distinguishes between failure to satisfy a required condition and failure to complete an operation within a specified time.
 +
 
 +
The REQUIRE command is typically used to verify preconditions before performing an operation. If a required condition is not satisfied, the specified failure message is displayed and execution is terminated without executing the ONFAIL handler.
 +
 
 +
The ONFAIL command defines a set of assignments and a message to be executed if a subsequent WAIT command times out. This allows a macro to perform corrective actions when an operation does not achieve its expected result.
 +
 
 +
For example:
 +
 
 +
ONFAIL starter=0 | Quick start failed. Do you have equipment malfunctions?
 +
REQUIRE isEngineRunning == 0 | Engine is already started.
 +
PUSH starter=1;
 +
WAIT 10 | n1 >= 0.12
 +
 
 +
If the engine is already running, execution terminates without changing the starter state.
 +
 
 +
If the starter is activated but N1 fails to reach 12% within ten seconds, the ONFAIL handler disengages the starter and displays the failure message before execution is terminated.
 +
 
 +
The ONFAIL handler is not executed when a REQUIRE condition fails.
 +
 
 +
==== Applying Textures and Materials ====
 +
 
 +
The APPLY command is used to modify the textures and materials on individual faces of aircraft components.
 +
 
 +
The command has the following syntax:
 +
 
 +
APPLY prim:face:type=uuid
 +
 
 +
The parameters are:
 +
 
 +
{| class=wikitable
 +
!Parameter
 +
!Description
 +
|-
 +
|''prim''
 +
|Name of the prim or mesh component to modify.
 +
|-
 +
|''face''
 +
|Face number on the specified component.
 +
|-
 +
|''type''
 +
|Type of texture or material to apply.
 +
|-
 +
|''uuid''
 +
|UUID of the texture or material asset.
 +
|}
 +
 
 +
The following texture and material types are supported:
 +
 
 +
{| class=wikitable
 +
!Type
 +
!Description
 +
|-
 +
|diff
 +
|Legacy diffuse texture.
 +
|-
 +
|norm
 +
|Legacy normal map.
 +
|-
 +
|spec
 +
|Legacy specular map.
 +
|-
 +
|mat
 +
|PBR material.
 +
|}
 +
 
 +
Multiple APPLY commands may be used to modify different components, different faces of the same component, or different material types on the same face.
 +
 
 +
Both legacy textures and PBR materials may be specified for the same face. This allows an applier to provide both legacy and PBR versions of the same aircraft appearance.
 +
 
 +
Refer to the Painting Resources section for additional information on creating custom aircraft textures and materials.
 +
 
 +
==== Examples ====
 +
 
 +
===== Aircraft Operation Example =====
 +
 
 +
The following example is the supplied "*macro:qstart" notecard. It demonstrates the use of assignments, conditional expressions, timed waits, failure handling, and messages to automate an aircraft operation.
 +
 
 +
ONFAIL starter = 0 | Quick start failed.  Do you have equipment malfunctions?
 +
REQUIRE isEngineRunning == 0 | Engine is already started.  Please do a 'stop' before using 'qstart'.
 +
REQUIRE havePilot != 0 | Must have authorized pilot in pilot seat to start engine.
 +
MESG Doing quick start-up.
 +
PUSH throttle=0.0; batt=2; anticol=1; key=1;
 +
MESG Quick-Start: Verifying DC power on...
 +
WAIT 10 | DCBus != 0
 +
PUSH starter=1;
 +
MESG  Quick-Start: Waiting for 12% N1...
 +
WAIT 10 | n1 >= 0.12
 +
PUSH throttle=0.1;
 +
MESG Quick-Start: Waiting for 64% N1...
 +
WAIT 100 | n1 >= 0.64
 +
PUSH throttle=1.0;
 +
MESG  Quick-Start: Waiting for 100% N2...
 +
WAIT 40 | n2 >= 0.99
 +
PUSH gen=1; autoReIgn=1; kollsman=pressure; dg=compass
 +
XPDR ALT
 +
MESG Quick-Start: Ready for flight!
 +
 
 +
The macro performs the following operations:
 +
 
 +
# Defines a failure handler to disengage the starter if a WAIT command times out.
 +
# Verifies that the engine is not already running and that an authorized pilot is seated in the pilot seat.
 +
# Configures the throttle and electrical switches for engine start.
 +
# Verifies that DC bus power is available.
 +
# Activates the starter and waits for N1 to reach 12%.
 +
# Moves the throttle to the ground idle position and waits for N1 to reach 64%.
 +
# Opens the throttle fully and waits for N2 to reach operating speed.
 +
# Enables the generator and automatic reignition, sets the altimeter, and aligns the directional gyro.
 +
# Sets the transponder to altitude reporting mode.
 +
# Notifies the flight crew that the aircraft is ready for flight.
 +
 
 +
The WAIT commands allow the sequence to respond to actual aircraft conditions rather than relying on fixed delays. If any of the required system conditions cannot be achieved within the specified time, the sequence terminates and the failure handler is executed.
 +
 
 +
===== Aircraft Customization Example =====
 +
 
 +
The following example is the "*apply:seats-white" notecard, which changes the front and rear seat upholstery and seat pockets to a white color scheme.
  
 
  SAY Applying white seat textures.....
 
  SAY Applying white seat textures.....
 +
APPLY copilot-seat:0:diff=eeac5299-5b1a-c5f0-4b5d-c9a41cf69324
 
  APPLY pilot-seat:0:diff=eeac5299-5b1a-c5f0-4b5d-c9a41cf69324
 
  APPLY pilot-seat:0:diff=eeac5299-5b1a-c5f0-4b5d-c9a41cf69324
 +
APPLY copilot-seat:0:norm=1a28b8df-1aad-a7d0-e35a-1bf4c7b95dbe
 
  APPLY pilot-seat:0:norm=1a28b8df-1aad-a7d0-e35a-1bf4c7b95dbe
 
  APPLY pilot-seat:0:norm=1a28b8df-1aad-a7d0-e35a-1bf4c7b95dbe
 +
APPLY copilot-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
 
  APPLY pilot-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
 
  APPLY pilot-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
 +
APPLY copilot-seat:0:mat=489bb016-aaed-41e9-98e2-b39b0ba1c722
 
  APPLY pilot-seat:0:mat=489bb016-aaed-41e9-98e2-b39b0ba1c722
 
  APPLY pilot-seat:0:mat=489bb016-aaed-41e9-98e2-b39b0ba1c722
 +
 +
APPLY rRear-seat:0:diff=f15f2a68-5e34-b265-de5b-736d451ecbd2
 +
APPLY lRear-seat:0:diff=f15f2a68-5e34-b265-de5b-736d451ecbd2
 +
APPLY rRear-seat:0:norm=d6a30af7-5771-f8ab-4d45-087dbe1a0c97
 +
APPLY lRear-seat:0:norm=d6a30af7-5771-f8ab-4d45-087dbe1a0c97
 +
APPLY rRear-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
 +
APPLY lRear-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
 +
APPLY rRear-seat:0:mat=258196d7-99d8-660b-aeb2-203e26f2cac9
 +
APPLY lRear-seat:0:mat=258196d7-99d8-660b-aeb2-203e26f2cac9
 +
 +
APPLY seat_pocket:0:diff=417c1a6f-49e8-9038-8c3d-e10300b9f006
 +
APPLY seat_pocket:0:norm=197f22ea-2919-cdba-5481-4b6cc6defc51
 +
APPLY seat_pocket:0:spec=995e477a-22ad-82cf-3b20-f42f85de95b0
 +
APPLY seat_pocket:0:mat=4bac32f3-5cf0-c820-1597-abd13c1d5454
 +
SAY Texture change complete.
 +
 +
The applier is divided into three groups of APPLY commands:
 +
 +
* Front pilot and copilot seats.
 +
* Left and right rear passenger seats.
 +
* Seat pockets.
 +
 +
Each group specifies the legacy diffuse, normal, and specular textures, as well as the corresponding PBR materials. The same texture or material UUID may be used on multiple aircraft components where appropriate.
 +
 +
The SAY commands at the beginning and end of the notecard provide feedback in local chat indicating the progress of the customization operation.
 +
 +
To invoke this applier, the aircraft owner issues the following chat command:
 +
 +
apply seats-white

Revision as of 19:59, 27 November 2026

SECTION 12. SL Features

This section describes features of the MD-500D specific to its implementation in Second Life, including gestures, cockpit interaction, chat commands, and the use of macros and appliers to automate aircraft operations and customize aircraft appearance.

1 Gestures

Second Life gestures provide additional keyboard commands beyond those available through the standard flight control layouts. These gestures allow the pilot to perform certain aircraft functions without using chat commands, menus, or cockpit controls.

A set of gestures is supplied in a separate box included in the aircraft product carton. To use these gestures, unpack the gesture box into your inventory and activate the desired gestures by right-clicking on them and selecting "Activate".

Once activated, a gesture can be triggered by pressing its assigned key. Gestures remain active until explicitly deactivated and do not need to be activated again each time the aircraft is rezzed.

Commands requiring an activated gesture are identified by [G] in the flight control layout tables.

1.1 Gesture Key Assignments

Key Function Description
P Camera view Toggles between the cockpit and external follow camera views.
Shift+C Collective full down Moves the collective to its fully lowered position.
T Mouselook touch Toggles between cockpit interaction and pedal control using the mouse button in mouselook.
Q Fine control Toggles fine control mode for more precise flight control inputs.
. Center cyclic Returns the cyclic to its centered position.
I Cyclic forward Moves the cyclic forward.
J Cyclic left Moves the cyclic to the left.
K Cyclic aft Moves the cyclic aft.
L Cyclic right Moves the cyclic to the right.
Z Left pedal Applies left anti-torque pedal input.
X Right pedal Applies right anti-torque pedal input.
R Increase throttle Rotates the throttle toward the FULL position.
V Decrease throttle Rotates the throttle toward the CLOSED position.

1.2 Customizing Gestures

The supplied gestures may be modified using the Second Life gesture editor. This allows the pilot to change the assigned keys to suit personal preferences or avoid conflicts with other active gestures.

Additional gestures can also be created using the aircraft chat commands described in the Chat Commands section below. Aircraft chat commands issued by gestures may be sent on channel 2973 to avoid displaying the commands in local chat.


NOTE: Active gestures may conflict with gestures supplied by other products or with existing viewer keyboard shortcuts. If a gesture does not produce the expected response, check its activation status and assigned key, and verify that no other active gesture uses the same key.

2 Switch Operation and Control

2.1 General

Most cockpit switches can be operated either by clicking on them directly or by issuing chat commands using their assigned switch names. Chat commands may also be incorporated into custom gestures.

Refer to the Switch Summary in the Appendix for a list of switch names and their functions.

The method of operating a switch and the interpretation of its position numbers depend on the type of switch, as described below.

2.2 Mouselook Touch

2.2.1 Toggle switches
Figure 1: Toggle Switch

Toggle switches are simple two position switches, in most cases with an ON and OFF position (a small subset are selectors between two options). Commands for toggle switches are:

Command Description
s name Toggle a switch
s1 name Move a switch to the ON position.
s0 name Move a switch to the OFF position.
2.2.2 Three-Position Toggle Switches
Figure 2: Three-Position Toggle Switch

The MD500 has a number of three-state "toggle" style switches (see Figure 2). The switch positions are numbered with "0" as the top position and "1" as the center position, and "2" as the bottom position. Toggles are operated by clicking over the area you want it to switch to, near the top for position 0, the center for position 1 and the bottom for position 2. They can be controlled with the following chat commands:

Command Description
s0 name Move switch to top position
s1 name Move switch to center position
s2 name Move switch to bottom position
2.2.3 Rocker Switches
Figure 3: Rocker Switch

The MD500D has several three-position rocker switches. The center position is numbered "0", and the two outer positions are numbered "1" and "2".

Rocker switches are operated by clicking on either half of the switch. Each click moves the switch one position in the corresponding direction. An example is the cabin light switch, which has RED, OFF, and WHITE positions.

They can also be controlled with the following chat commands:

Command Description
s0 name Move switch to center position
s1 name Move switch to edge position 1
s2 name Move switch to edge position 2
2.2.4 Rotary Switches
Figure 4: Rotary Switch (Type 1)

Rotary switches have varying numbers of discrete positions and are operated by rotating a knob (e.g., Figure 4). Positions are numbered starting with zero at the most counter-clockwise position and increasing in the clockwise direction.

Rotary switches are operated by clicking on either side of the indicator line on the knob. The side on which the knob is clicked determines the direction of rotation. Some rotary switches can also be operated by clicking directly on the labels surrounding the knob.

Command Description
sn name Set rotary switch to position n.

3 Camera Views

3.1 Cockpit View

3.2 External Follow View

3.3 Overhead View

3.4 Underside View

4 Chat Commands

Chat commands may be issued on local chat or on channel /2973 for use in gestures.

4.1 Command Summary

The following table summarizes the chat commands available for the MD-500D. Commands that accept additional subcommands are described in subsequent sections.

Command Description
help / poh Get a link to the aircraft flight manual.
menu Post the main menu.
hud Get a copy of the flight HUD.
prehud Get a copy of the preflight HUD (upcoming feature).
checklist Bring out or stow the checklist.
cv / cv0 / cv1 / cv2 / cv3 Change camera view: toggle / cockpit / behind / overhead / underside.
mlt Toggle mouselook touch.
dc Close all doors.
cycen Center the cyclic.
pedcen Center the pedals.
fc / fc0 / fc1 / fc2 Fine control: toggle / off / fine / very fine.
qstart Perform a quick start, bypassing the normal engine start procedure.
qstop / stop Perform a quick shutdown, bypassing the normal engine shutdown procedure.
ec/n Set the throttle position to n percent (0–100). A setting of 10% corresponds to ground idle.
ec+ Increase throttle position by 10 percentage points.
ec- Decrease throttle position by 10 percentage points.
s switch-name Toggle the specified two-position switch.
s0 switch-name Set the specified switch to position 0 (OFF for an ON/OFF switch).
s1 switch-name Set the specified switch to position 1 (ON for an ON/OFF switch).
sn switch-name Set the specified switch to position n. Refer to Switch Operation and Control for position numbering conventions.
alt nn.nn Set the altimeter setting to nn.nn.
dg hdg Set the directional gyro to the specified heading.
com1 freq Set the COM1 radio frequency to freq.
com2 freq Set the COM2 radio frequency to freq.
nav cmd / nav1 cmd Execute a NAV radio command.
x cmd Execute a transponder command.
gps cmd Execute a GPS command.
w cmd Execute a cargo hook or long-line command.
wx cmd Execute a weather command.
exec name Execute a command macro notecard (macro:).
apply name Execute an applier macro notecard (apply:).

4.2 Throttle Commands

The throttle commands control the position of the engine twist grip. The percentage refers to throttle travel, not engine power or RPM. A throttle position of 10% corresponds to the normal ground idle position.

Command Description
ec/n Set throttle position to n percent (0–100).
ec+ Increase throttle position by 10 percentage points.
ec- Decrease throttle position by 10 percentage points.
ec/0 Set throttle to fuel cutoff.
ec/10 Set throttle to ground idle.
ec/100 Set throttle to fully open.

4.3 Transponder Commands

The transponder code and operating mode can be set directly using the "x" chat command. Mode names are case-insensitive.

Command Description
x code Set the four-digit octal transponder code.
x off Turn the transponder off.
x stby Set the transponder to standby mode.
x on Enable transponder replies without altitude reporting.
x alt Enable transponder replies with altitude reporting.

For example, the following commands set the transponder to the VFR code of 1200 and enable altitude reporting:

x 1200
x alt

4.4 Radio Commands

The COM1, COM2, and NAV radio frequencies can be set directly using chat commands. Unlike tuning a frequency using the controls on the radio itself, which sets the standby frequency, entering a frequency using a chat command sets the active frequency directly.

The "swap" subcommand exchanges the active and standby frequencies in the same manner as pressing the frequency transfer button on the radio.

Command Description
com1 freq Set the active COM1 frequency.
com1 swap Exchange the active and standby COM1 frequencies.
com2 freq Set the active COM2 frequency.
com2 swap Exchange the active and standby COM2 frequencies.
nav freq / nav1 freq Set the active NAV frequency.
nav swap / nav1 swap Exchange the active and standby NAV frequencies.

4.5 GPS Commands

Command Description
gps new Delete all waypoints.
gps route wp1 wp2 ... wpn Set a full route as a sequence of waypoints.
gps save label Save the current route to the server.
gps load label Load a route from the server.

4.6 Cargo Hook Commands

The cargo hook can be opened using either the normal electrical release or the emergency mechanical release. The normal release requires the DC bus to be powered and the cargo hook circuit breaker to be closed.

The emergency release simulates the operation of the mechanical release cable on the real aircraft and does not require electrical power.

Command Description
w open / w hookopen Open the cargo hook using the normal electrical release. Requires DC bus power and the cargo hook circuit breaker to be closed.
w emeropen / w eopen Open the cargo hook using the emergency mechanical release.

Refer to Section 9, Cargo Hook, for additional information on cargo hook operation and external load procedures.

4.7 Weather Commands

Refer to The SL Helicopter Flying Handbook - Weather for static weather chat commands.

5 Macros and Appliers

Macros and appliers can be used to execute sequences of commands stored in notecards in the aircraft inventory. Both use the same command execution engine and support exactly the same command language.

By convention, macros are used to automate aircraft operations and configure aircraft systems, while appliers are used to modify the appearance of the aircraft. There are no restrictions on which commands may be used in either type of notecard. For example, a macro may contain commands to change textures, and an applier may contain commands to operate aircraft switches.

The distinction between macros and appliers is in their notecard name prefixes, invocation commands, and access permissions.

Property Macros Appliers
Notecard prefix *macro: *apply:
Chat command exec name apply name
Access permission Any authorized pilot Aircraft owner only
Typical use Aircraft operation and configuration Aircraft appearance and customization

5.1 Invoking

To invoke a macro, use the "exec" chat command followed by the name of the macro. For example:

exec auto

This will look for the notecard "*macro:auto" in the aircraft inventory and execute the commands contained in it.

Similarly, to invoke an applier, use the "apply" chat command followed by the name of the applier. For example:

apply seats-white

This will look for the notecard "*apply:seats-white" in the aircraft inventory and execute the commands contained in it.

The notecard prefix is not included in the name when issuing either chat command.

5.2 Supplied Macros

The MD-500D includes a number of predefined macros for performing common aircraft operations. These macros are available to any authorized pilot and do not require the creation or installation of additional notecards.

Command Description
exec qstart Perform a complete quick start sequence, preparing the aircraft for flight. May also be invoked using the "qstart" chat command.
exec qstop Perform a quick shutdown sequence. May also be invoked using the "qstop" or "stop" chat command.
exec gpu-start Perform a quick start using a ground power unit (GPU) rather than the aircraft battery. The GPU must be connected before invoking this macro.
exec idle-start Perform an abbreviated engine start sequence, stopping at normal ground idle. The pilot must manually complete the remaining procedures before flight.
exec auto Configure the aircraft for autorotation.

5.3 Creating Notecards

Custom macros and appliers may be created by preparing a notecard containing the desired sequence of commands and placing it in the aircraft inventory. The notecard name must begin with "*macro:" or "*apply:", depending on how it is to be invoked.

Each command is written on a separate line. Commands are executed sequentially in the order in which they appear in the notecard. Blank lines may be used to separate groups of related commands for readability.

A notecard may contain any combination of the supported commands, including commands to operate aircraft controls, modify textures and materials, display messages, test aircraft state, and wait for specified conditions.

5.4 Command Summary

The following commands are supported in both macro and applier notecards.

Command Description
PUSH asgns Executes a semicolon-separated list of assignments.
APPLY prim:face:type=uuid Applies a texture or material to the specified face of an aircraft component.
MESG mesg Displays the message mesg to the flight crew only.
SAY mesg Displays the message mesg in local chat.
XPDR xpdr-cmd Sets a transponder code or operating mode.
SLEEP seconds Pauses execution for the specified number of seconds.
WAIT seconds | cond Waits up to the specified number of seconds for the condition cond to become true. If the timeout expires, the ONFAIL handler, if defined, is executed and the macro is terminated.
CMD command Executes command as if it were a command typed in local chat.
ONFAIL asgns | mesg Defines the failure handler to be executed if a subsequent WAIT command times out. asgns is a semicolon-separated list of assignments to perform, and mesg is a message to display to the flight crew.
REQUIRE cond | fail-mesg Tests whether the condition cond is true. If false, displays the message fail-mesg to the flight crew and terminates execution. The ONFAIL handler is not executed.

5.5 Assignments

Assignments are used by the PUSH and ONFAIL commands to set the values of aircraft variables. An assignment consists of a variable name followed by an equals sign and a value.

variable = value

Multiple assignments may be separated by semicolons. For example:

PUSH throttle=0.0; batt=2; anticol=1; key=1;

This sets the throttle to fuel cutoff and sets the specified electrical and ignition switches to the indicated positions.

The value on the right-hand side of an assignment may be a numeric constant or the name of another aircraft variable. For example:

PUSH kollsman=pressure; dg=compass;

This sets the altimeter pressure setting to the current atmospheric pressure setting and aligns the directional gyro with the compass heading.

Arithmetic expressions are not currently supported. For example, the following assignment is not valid:

PUSH throttle=throttle+0.1;

5.6 Aircraft Variables

All switch names listed in the Switch Summary in the Appendix are available as variables in macros and appliers. Switch values correspond to the position numbers described in the Switch Operation and Control section.

Additional variables provide access to aircraft controls, instrument settings, and system state.

Some variables are read-only. Read-only variables may be used in conditional expressions or as the source value in an assignment, but cannot be modified by PUSH or ONFAIL commands.

The following table lists some of the additional aircraft variables available for use in macros and appliers.

Variable Description Values Access
throttle Engine throttle position. 0.0 to 1.0 (0.1 = ground idle) Read/write
n1 Gas producer speed. 1.0 = 100% Read-only
n2 Power turbine speed. 1.0 = 100% Read-only
DCBus DC bus power status. Zero = unpowered Read-only
havePilot Authorized pilot present in the pilot seat. Zero = false Read-only
isEngineRunning Engine running status. Zero = false Read-only
pressure Current atmospheric pressure setting. Pressure setting Read-only
compass Current compass heading. Degrees Read-only
kollsman Altimeter pressure setting. Pressure setting Read/write
dg Directional gyro heading. Degrees Read/write

Note that normalized values are used for certain variables. For example, a throttle position of 50% is represented by 0.5, and an N1 speed of 64% is represented by 0.64.

5.7 Conditional Expressions

The REQUIRE and WAIT commands evaluate conditional expressions. A conditional expression consists of two operands separated by a comparison operator. Each operand may be a numeric constant or an aircraft variable.

operand operator operand

The following comparison operators are supported:

Operator Description
== Equal to
!= Not equal to
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to

Only simple comparisons are currently supported. Arithmetic expressions and compound expressions using logical AND or OR operators are not supported.

Multiple required conditions can be checked by issuing successive REQUIRE commands. For example:

REQUIRE isEngineRunning == 0 | Engine is already started.
REQUIRE havePilot != 0 | Must have authorized pilot in pilot seat.

Both conditions must be satisfied for execution to continue.

5.8 Timing and Synchronization

The SLEEP and WAIT commands provide two different methods of delaying execution.

The SLEEP command pauses execution for a fixed period of time. For example:

SLEEP 5

This pauses execution for five seconds before proceeding to the next command.

The WAIT command pauses execution until a specified condition becomes true, subject to a maximum waiting time. For example:

WAIT 10 | n1 >= 0.12

This waits up to ten seconds for N1 to reach 12%. Execution continues as soon as the condition is satisfied. If the condition is already satisfied, execution can continue without waiting for the specified time to elapse.

If the condition is not satisfied within the allotted time, execution is terminated and the ONFAIL handler, if defined, is executed.

WAIT is particularly useful when automating aircraft operations whose completion times may vary depending on aircraft condition or operating circumstances.

5.9 Failure Handling

The command language distinguishes between failure to satisfy a required condition and failure to complete an operation within a specified time.

The REQUIRE command is typically used to verify preconditions before performing an operation. If a required condition is not satisfied, the specified failure message is displayed and execution is terminated without executing the ONFAIL handler.

The ONFAIL command defines a set of assignments and a message to be executed if a subsequent WAIT command times out. This allows a macro to perform corrective actions when an operation does not achieve its expected result.

For example:

ONFAIL starter=0 | Quick start failed. Do you have equipment malfunctions?
REQUIRE isEngineRunning == 0 | Engine is already started.
PUSH starter=1;
WAIT 10 | n1 >= 0.12

If the engine is already running, execution terminates without changing the starter state.

If the starter is activated but N1 fails to reach 12% within ten seconds, the ONFAIL handler disengages the starter and displays the failure message before execution is terminated.

The ONFAIL handler is not executed when a REQUIRE condition fails.

5.10 Applying Textures and Materials

The APPLY command is used to modify the textures and materials on individual faces of aircraft components.

The command has the following syntax:

APPLY prim:face:type=uuid

The parameters are:

Parameter Description
prim Name of the prim or mesh component to modify.
face Face number on the specified component.
type Type of texture or material to apply.
uuid UUID of the texture or material asset.

The following texture and material types are supported:

Type Description
diff Legacy diffuse texture.
norm Legacy normal map.
spec Legacy specular map.
mat PBR material.

Multiple APPLY commands may be used to modify different components, different faces of the same component, or different material types on the same face.

Both legacy textures and PBR materials may be specified for the same face. This allows an applier to provide both legacy and PBR versions of the same aircraft appearance.

Refer to the Painting Resources section for additional information on creating custom aircraft textures and materials.

5.11 Examples

5.11.1 Aircraft Operation Example

The following example is the supplied "*macro:qstart" notecard. It demonstrates the use of assignments, conditional expressions, timed waits, failure handling, and messages to automate an aircraft operation.

ONFAIL starter = 0 | Quick start failed.  Do you have equipment malfunctions?
REQUIRE isEngineRunning == 0 | Engine is already started.  Please do a 'stop' before using 'qstart'.
REQUIRE havePilot != 0 | Must have authorized pilot in pilot seat to start engine.
MESG Doing quick start-up.
PUSH throttle=0.0; batt=2; anticol=1; key=1;
MESG Quick-Start: Verifying DC power on...
WAIT 10 | DCBus != 0
PUSH starter=1;
MESG  Quick-Start: Waiting for 12% N1...
WAIT 10 | n1 >= 0.12
PUSH throttle=0.1;
MESG Quick-Start: Waiting for 64% N1...
WAIT 100 | n1 >= 0.64
PUSH throttle=1.0;
MESG  Quick-Start: Waiting for 100% N2...
WAIT 40 | n2 >= 0.99
PUSH gen=1; autoReIgn=1; kollsman=pressure; dg=compass
XPDR ALT
MESG Quick-Start: Ready for flight!

The macro performs the following operations:

  1. Defines a failure handler to disengage the starter if a WAIT command times out.
  2. Verifies that the engine is not already running and that an authorized pilot is seated in the pilot seat.
  3. Configures the throttle and electrical switches for engine start.
  4. Verifies that DC bus power is available.
  5. Activates the starter and waits for N1 to reach 12%.
  6. Moves the throttle to the ground idle position and waits for N1 to reach 64%.
  7. Opens the throttle fully and waits for N2 to reach operating speed.
  8. Enables the generator and automatic reignition, sets the altimeter, and aligns the directional gyro.
  9. Sets the transponder to altitude reporting mode.
  10. Notifies the flight crew that the aircraft is ready for flight.

The WAIT commands allow the sequence to respond to actual aircraft conditions rather than relying on fixed delays. If any of the required system conditions cannot be achieved within the specified time, the sequence terminates and the failure handler is executed.

5.11.2 Aircraft Customization Example

The following example is the "*apply:seats-white" notecard, which changes the front and rear seat upholstery and seat pockets to a white color scheme.

SAY Applying white seat textures.....
APPLY copilot-seat:0:diff=eeac5299-5b1a-c5f0-4b5d-c9a41cf69324
APPLY pilot-seat:0:diff=eeac5299-5b1a-c5f0-4b5d-c9a41cf69324
APPLY copilot-seat:0:norm=1a28b8df-1aad-a7d0-e35a-1bf4c7b95dbe
APPLY pilot-seat:0:norm=1a28b8df-1aad-a7d0-e35a-1bf4c7b95dbe
APPLY copilot-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
APPLY pilot-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
APPLY copilot-seat:0:mat=489bb016-aaed-41e9-98e2-b39b0ba1c722
APPLY pilot-seat:0:mat=489bb016-aaed-41e9-98e2-b39b0ba1c722

APPLY rRear-seat:0:diff=f15f2a68-5e34-b265-de5b-736d451ecbd2
APPLY lRear-seat:0:diff=f15f2a68-5e34-b265-de5b-736d451ecbd2
APPLY rRear-seat:0:norm=d6a30af7-5771-f8ab-4d45-087dbe1a0c97
APPLY lRear-seat:0:norm=d6a30af7-5771-f8ab-4d45-087dbe1a0c97
APPLY rRear-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
APPLY lRear-seat:0:spec=f242948b-59b8-6f9d-becf-6141579423eb
APPLY rRear-seat:0:mat=258196d7-99d8-660b-aeb2-203e26f2cac9
APPLY lRear-seat:0:mat=258196d7-99d8-660b-aeb2-203e26f2cac9

APPLY seat_pocket:0:diff=417c1a6f-49e8-9038-8c3d-e10300b9f006
APPLY seat_pocket:0:norm=197f22ea-2919-cdba-5481-4b6cc6defc51
APPLY seat_pocket:0:spec=995e477a-22ad-82cf-3b20-f42f85de95b0
APPLY seat_pocket:0:mat=4bac32f3-5cf0-c820-1597-abd13c1d5454
SAY Texture change complete.

The applier is divided into three groups of APPLY commands:

  • Front pilot and copilot seats.
  • Left and right rear passenger seats.
  • Seat pockets.

Each group specifies the legacy diffuse, normal, and specular textures, as well as the corresponding PBR materials. The same texture or material UUID may be used on multiple aircraft components where appropriate.

The SAY commands at the beginning and end of the notecard provide feedback in local chat indicating the progress of the customization operation.

To invoke this applier, the aircraft owner issues the following chat command:

apply seats-white