W9XE/Project777
05-09-2006, 06:14 PM
I received an email from Alan Dyer today with an update to FS2Pfhidgets. Below is the information
Have re-written FS2Phidgets based upon experience with my sim.
Has new look and feel.
No "save" buttons (everything is auto-saved) , a run time mode, an option to minimize at run time, etc.
Biggest addition is what I call Binary Coded Input.
If I was more marketing oriented, would name feature something like "Input Expander".
Suggestion originated from David Allen.
Here's how it works:
Assign the same offset to more than one digital input.
For example: Assign BusSelect1 ( offset 56ED ) to digital inputs 2,3 and 4.
BusSelect1 is one of the electrical bus select switches on pmSystems' 737 electrical panel on overhead .
Has 7 positions. (states).
FS2phidget will see each Phidget input as a bit in a range:
input 2 = 2^0 = 1
input 3 = 2^1 = 2
input 4 = 2^2 = 4
Whenever the state of either 2,3 or 4 changes FS2Phidgets will
generate a value by evaluating state of all 3 inputs as a group .
For example:
input 2 = on = 1
input 3 = off = 0
input 4 = on = 4
---------
Total 5
Will send value 5 to offset 56ED i.e. bus1 switch will be set to position 5.
8 input settings using only 3 Phidget input ports !!
The assignments do not have to be contiguous across inputs.
Could assign BusSelect1 to inputs 2,5 and 7 and BusSelect2 to inputs 0,3 and 6
As a performance consideration processing is event driven.
i.e. offset is only updated whenever an input changes state - there is no continuous polling.
The lowest numbered input is always the low order bit.
For now, only set to work with offsets of Type "Discretes".
Regards,
Alan.
Here is the link to the site. http://www.phidgetsusa.com/fs/fs2phidgets/flight_simulator_FS2Phidget.asp
Have re-written FS2Phidgets based upon experience with my sim.
Has new look and feel.
No "save" buttons (everything is auto-saved) , a run time mode, an option to minimize at run time, etc.
Biggest addition is what I call Binary Coded Input.
If I was more marketing oriented, would name feature something like "Input Expander".
Suggestion originated from David Allen.
Here's how it works:
Assign the same offset to more than one digital input.
For example: Assign BusSelect1 ( offset 56ED ) to digital inputs 2,3 and 4.
BusSelect1 is one of the electrical bus select switches on pmSystems' 737 electrical panel on overhead .
Has 7 positions. (states).
FS2phidget will see each Phidget input as a bit in a range:
input 2 = 2^0 = 1
input 3 = 2^1 = 2
input 4 = 2^2 = 4
Whenever the state of either 2,3 or 4 changes FS2Phidgets will
generate a value by evaluating state of all 3 inputs as a group .
For example:
input 2 = on = 1
input 3 = off = 0
input 4 = on = 4
---------
Total 5
Will send value 5 to offset 56ED i.e. bus1 switch will be set to position 5.
8 input settings using only 3 Phidget input ports !!
The assignments do not have to be contiguous across inputs.
Could assign BusSelect1 to inputs 2,5 and 7 and BusSelect2 to inputs 0,3 and 6
As a performance consideration processing is event driven.
i.e. offset is only updated whenever an input changes state - there is no continuous polling.
The lowest numbered input is always the low order bit.
For now, only set to work with offsets of Type "Discretes".
Regards,
Alan.
Here is the link to the site. http://www.phidgetsusa.com/fs/fs2phidgets/flight_simulator_FS2Phidget.asp