Page 2 of 3

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 08 Sep 2017, 13:35
by jockeyboy2_0
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

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 08 Sep 2017, 18:51
by MarkH
jockeyboy2_0 wrote: 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
Thanks Lee. I don't get this bit. I will try what you have said here, as I didn't know the engage_starter_n event could take a parameter. I also don't know what 'begin command' means (I have seen it as an option but I don't know what it means). Previously the closest I got was sending the engage_starter_n event with the 25ms repeat, but that doesn't really work reliably.

I have already experimented with the ignition_key[] dataref and the switches move, but it is getting the starter to stay engaged while I hold the switch down that I have not been able to achieve.

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 08 Sep 2017, 20:05
by jockeyboy2_0
Mark ,

this may be a bit easier to follow


Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 08 Sep 2017, 21:12
by MarkH
Thanks Lee, that did it - the Begin/End Command made the difference. Maybe this is an X-Plane-specific thing. I tried leaving it at 'Execute Command' and setting the parameter to 1 or 2 manually, and if you do this it automatically changes to 'Begin Command' or 'End Command'.

Anyway, I now have my engine starters working fine! I haven't bothered with the mags for now as I don't have any sensible switches to map them to. I just leave them on both all the time :)

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 09 Sep 2017, 12:54
by jockeyboy2_0
Glad I could help
.

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 28 Sep 2017, 16:05
by baranismen
c0nnex wrote:It will be available in X-Plane/com ... in the dataref browser in SPAD.neXt.

However I also provide a tool on request to "capture" all datarefs from a 3rd party aircraft to add them to SPAD.neXt. Just open a ticket to get it.
Hey Ulrich,

Did you add this function as a native function to Spad.Next or shall i still open a ticket for it ? I need that for my 3rd party airplane in XP-11 as well.

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 28 Sep 2017, 22:51
by wazooda
baranismen wrote:
c0nnex wrote:It will be available in X-Plane/com ... in the dataref browser in SPAD.neXt.

However I also provide a tool on request to "capture" all datarefs from a 3rd party aircraft to add them to SPAD.neXt. Just open a ticket to get it.
Hey Ulrich,

Did you add this function as a native function to Spad.Next or shall i still open a ticket for it ? I need that for my 3rd party airplane in XP-11 as well.
I'd like this tool as well.

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 29 Sep 2017, 10:10
by berniegtr
+++1
I'd like this tool also.

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 30 Sep 2017, 14:36
by c0nnex
To get the tool you will need to open a ticket. I might opensource it somewhen in future , but for now it's on request only

Re: Xplane 11 Custom commands / Dataref Manipulation

Posted: 30 Sep 2017, 14:41
by baranismen
Ok, i did already :)