Re: Xplane 11 Custom commands / Dataref Manipulation
Posted: 08 Sep 2017, 13:35
Mark,
Today I had a look at B58 with Rep,
From what I can tell Looking at the Datarefs :
Left Starter Switch: Position Off
sim/cockpit2/engine/actuators/ignition_key [8] = [0,0,0,0,0,0,0,0]
Left Starter Switch: Position R
sim/cockpit2/engine/actuators/ignition_key [8] = [1,0,0,0,0,0,0,0]
Left Starter Switch: Position L
sim/cockpit2/engine/actuators/ignition_key [8] = [2,0,0,0,0,0,0,0]
Left Starter Switch: Position Both
sim/cockpit2/engine/actuators/ignition_key [8] = [3,0,0,0,0,0,0,0]
For the Start Position, Send the Default Command
sim/starters/engage_starter_1
For the Right Starter Switch : Position Off
sim/cockpit2/engine/actuators/ignition_key [8] = [0,0,0,0,0,0,0,0]
Right Starter Switch: Position R
sim/cockpit2/engine/actuators/ignition_key [8] = [0,1,0,0,0,0,0,0]
Right Starter Switch: Position L
sim/cockpit2/engine/actuators/ignition_key [8] = [0,2,0,0,0,0,0,0]
Right Starter Switch: Position Both
sim/cockpit2/engine/actuators/ignition_key [8] = [0,3,0,0,0,0,0,0]
For the Start Position, Send the Default Command
sim/starters/engage_starter_2
For Spad.next and setting up the Switch (Left Engine )
for the Magneto Positions R , L , Both I used the Change Data Value
and selected Xplane > sim > Cockpit2 > Engine > actuators
then Ignition Key # 1 setting the parameter as 0 for off position 1 for right position 2 for Left position and 3 for Both.
For the start position I then set the event for a Switch On.
Send Simulator Command event.
Select Xplane > sim > starters > engage_starter_1 and also select begin command and Parameter Value 1
I then Set an event for the switch off.
Select Xplane > sim > starters > engage_starter_1 and also select end command and parameter Value 2
The right Engine is exactly the same but use Ignition Key 2 and engage starter 2.
I Have tested this method on my development machine, and with simple joystick buttons , I will have a look at setting this system up in my sim machine but im pretty happy that it would work.
Rgds
Lee
Today I had a look at B58 with Rep,
From what I can tell Looking at the Datarefs :
Left Starter Switch: Position Off
sim/cockpit2/engine/actuators/ignition_key [8] = [0,0,0,0,0,0,0,0]
Left Starter Switch: Position R
sim/cockpit2/engine/actuators/ignition_key [8] = [1,0,0,0,0,0,0,0]
Left Starter Switch: Position L
sim/cockpit2/engine/actuators/ignition_key [8] = [2,0,0,0,0,0,0,0]
Left Starter Switch: Position Both
sim/cockpit2/engine/actuators/ignition_key [8] = [3,0,0,0,0,0,0,0]
For the Start Position, Send the Default Command
sim/starters/engage_starter_1
For the Right Starter Switch : Position Off
sim/cockpit2/engine/actuators/ignition_key [8] = [0,0,0,0,0,0,0,0]
Right Starter Switch: Position R
sim/cockpit2/engine/actuators/ignition_key [8] = [0,1,0,0,0,0,0,0]
Right Starter Switch: Position L
sim/cockpit2/engine/actuators/ignition_key [8] = [0,2,0,0,0,0,0,0]
Right Starter Switch: Position Both
sim/cockpit2/engine/actuators/ignition_key [8] = [0,3,0,0,0,0,0,0]
For the Start Position, Send the Default Command
sim/starters/engage_starter_2
For Spad.next and setting up the Switch (Left Engine )
for the Magneto Positions R , L , Both I used the Change Data Value
and selected Xplane > sim > Cockpit2 > Engine > actuators
then Ignition Key # 1 setting the parameter as 0 for off position 1 for right position 2 for Left position and 3 for Both.
For the start position I then set the event for a Switch On.
Send Simulator Command event.
Select Xplane > sim > starters > engage_starter_1 and also select begin command and Parameter Value 1
I then Set an event for the switch off.
Select Xplane > sim > starters > engage_starter_1 and also select end command and parameter Value 2
The right Engine is exactly the same but use Ignition Key 2 and engage starter 2.
I Have tested this method on my development machine, and with simple joystick buttons , I will have a look at setting this system up in my sim machine but im pretty happy that it would work.
Rgds
Lee