MS Flightsimulator 2020 Framedrops/Stutters are fixed with MSFS Release 1.7.14.0

Xplane 11 Custom commands / Dataref Manipulation

General Discussions
jockeyboy2_0
Betatester
Posts: 53
Joined: 04 Sep 2017, 12:13
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by jockeyboy2_0 » 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

User avatar
MarkH
Flight Attendant
Posts: 20
Joined: 17 Apr 2017, 17:56
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by MarkH » 08 Sep 2017, 18:51

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.

jockeyboy2_0
Betatester
Posts: 53
Joined: 04 Sep 2017, 12:13
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by jockeyboy2_0 » 08 Sep 2017, 20:05

Mark ,

this may be a bit easier to follow


User avatar
MarkH
Flight Attendant
Posts: 20
Joined: 17 Apr 2017, 17:56
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by MarkH » 08 Sep 2017, 21:12

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 :)

jockeyboy2_0
Betatester
Posts: 53
Joined: 04 Sep 2017, 12:13
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by jockeyboy2_0 » 09 Sep 2017, 12:54

Glad I could help
.

baranismen
Flight Attendant
Posts: 47
Joined: 07 Sep 2016, 07:40
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by baranismen » 28 Sep 2017, 16:05

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.

wazooda
Passenger
Posts: 4
Joined: 03 Jun 2017, 01:20
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by wazooda » 28 Sep 2017, 22:51

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.

berniegtr
Passenger
Posts: 5
Joined: 12 Jan 2017, 11:16
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by berniegtr » 29 Sep 2017, 10:10

+++1
I'd like this tool also.

User avatar
c0nnex
Site Admin
Posts: 5323
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by c0nnex » 30 Sep 2017, 14:36

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

baranismen
Flight Attendant
Posts: 47
Joined: 07 Sep 2016, 07:40
Status: Offline

Re: Xplane 11 Custom commands / Dataref Manipulation

Post by baranismen » 30 Sep 2017, 14:41

Ok, i did already :)

Locked