Current SPAD.neXt Release: 0.9.12.123
This forum has closed. Please join our Discord Community.
SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5
Xplane 11 Custom commands / Dataref Manipulation
-
- Betatester
- Posts: 53
- Joined: 04 Sep 2017, 12:13
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
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
Re: Xplane 11 Custom commands / Dataref Manipulation
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.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
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.
-
- Betatester
- Posts: 53
- Joined: 04 Sep 2017, 12:13
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
Mark ,
this may be a bit easier to follow
this may be a bit easier to follow
Re: Xplane 11 Custom commands / Dataref Manipulation
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
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
-
- Betatester
- Posts: 53
- Joined: 04 Sep 2017, 12:13
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
Glad I could help
.
.
-
- Flight Attendant
- Posts: 47
- Joined: 07 Sep 2016, 07:40
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
Hey Ulrich,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.
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
I'd like this tool as well.baranismen wrote:Hey Ulrich,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.
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
+++1
I'd like this tool also.
I'd like this tool also.
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
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
-
- Flight Attendant
- Posts: 47
- Joined: 07 Sep 2016, 07:40
- Status: Offline
Re: Xplane 11 Custom commands / Dataref Manipulation
Ok, i did already