1
General Discussions / Pro-Shift and XPlane (10 for now)
« on: February 01, 2018, 04:26:05 pm »
Hello.
As a proof of concept I have crated a version of SimDash that works with the Pro-Shift boards and XPlane 10, but XPlane 11 should work as well.
This is the link for the download:
https://www.dropbox.com/s/3ciuq32x9lfdff7/SimDashXPlane.zip?dl=0
it will require .NET Framework 4.5, if you don't have it:
https://www.microsoft.com/en-gb/download/details.aspx?id=30653
you will also need the ExtPlane plugin installed in X-Plane:
https://github.com/vranki/ExtPlane
You need to know what datarefs are in XPlane. Basically they are strings that describe a piece of data in the simulator, like speed, state of landing gear, altitude...
The full list is in this file:
X-Plane 10 Installation Folder\Resources\plugins\DataRefs.txt
A typical line is:
sim/cockpit/electrical/taxi_light_on int y bool Taxi Lights
The dataref below:
sim/cockpit/electrical/generator_on int[8] y bool
returns an array of int (a group of 8 integer). one integer for each engine in this case. the first value has index 0. the last one index 7.
When you start SimDash, use the menu "File -> Import Settings..." to import the file I have attached.
It contains some example configuration.
The first part of the configuration is on the X-Plane plugin. Start Simdash, "Simulators" tab and then click the "Configure" button of the XPlane plugin. Here you configure which datarefs you want to read from X-Plane. My configuration has few example. Pick a dataref from the DataRefs.txt file and set the returned value as from the file.
If the returned value is an array, indicate which index of the array you want to read. first element of the array has index zero.
Second part of the configuration: the Pro-Shift plugin. Assign one of the configured dataref to a led.
In my configuration LED 1 will come on when RPM of engine n.1 is above 1.500 RPM, and will blink quick when RPM > 2000
LED 2 will switch ON when taxi lights are ON.
I think in the future I will include the list of DataRefs inside SimDash, so the user only has to choose the dataref from a list and don't worry to indicate the type of its return value.
Few notes:
http://www.xsquawkbox.net/xpsdk/mediawiki/DataRefEditor
Please let me know what you think and if you have suggestion.
I'd like to make SimDash for X-Plane a finished off product and I will be investing more time in the following weeks/months.
Cheers
Cristiano
As a proof of concept I have crated a version of SimDash that works with the Pro-Shift boards and XPlane 10, but XPlane 11 should work as well.
This is the link for the download:
https://www.dropbox.com/s/3ciuq32x9lfdff7/SimDashXPlane.zip?dl=0
it will require .NET Framework 4.5, if you don't have it:
https://www.microsoft.com/en-gb/download/details.aspx?id=30653
you will also need the ExtPlane plugin installed in X-Plane:
https://github.com/vranki/ExtPlane
You need to know what datarefs are in XPlane. Basically they are strings that describe a piece of data in the simulator, like speed, state of landing gear, altitude...
The full list is in this file:
X-Plane 10 Installation Folder\Resources\plugins\DataRefs.txt
A typical line is:
sim/cockpit/electrical/taxi_light_on int y bool Taxi Lights
- the first column is the dataref name
- int is the type of the returned value. you can have int (integer), float and double (decimal values). float[] and int[] are array of floats or integers (array are group of values)
- third column (Y or N) tells you if the dataref can be written
- bool is the unit of the dataref. in this case it tells you that the value is 0 or 1. OFF or ON
- and then the description of the value
The dataref below:
sim/cockpit/electrical/generator_on int[8] y bool
returns an array of int (a group of 8 integer). one integer for each engine in this case. the first value has index 0. the last one index 7.
When you start SimDash, use the menu "File -> Import Settings..." to import the file I have attached.
It contains some example configuration.
The first part of the configuration is on the X-Plane plugin. Start Simdash, "Simulators" tab and then click the "Configure" button of the XPlane plugin. Here you configure which datarefs you want to read from X-Plane. My configuration has few example. Pick a dataref from the DataRefs.txt file and set the returned value as from the file.
If the returned value is an array, indicate which index of the array you want to read. first element of the array has index zero.
Second part of the configuration: the Pro-Shift plugin. Assign one of the configured dataref to a led.
In my configuration LED 1 will come on when RPM of engine n.1 is above 1.500 RPM, and will blink quick when RPM > 2000
LED 2 will switch ON when taxi lights are ON.
I think in the future I will include the list of DataRefs inside SimDash, so the user only has to choose the dataref from a list and don't worry to indicate the type of its return value.
Few notes:
- Next step is to support the JC-LED board that I think is more interesting than the Pro-Shift.
- Dataref can be written too. I am planning to support this. so for example taxi lights could be switched off when a joystick button is pressed
- DatarefEditor is a plugin that runs inside X-Plane and lets you explore the over 2000 datarefs available. very useful I think:
http://www.xsquawkbox.net/xpsdk/mediawiki/DataRefEditor
Please let me know what you think and if you have suggestion.
I'd like to make SimDash for X-Plane a finished off product and I will be investing more time in the following weeks/months.
Cheers
Cristiano