ENC CS -> Arduino SS (pin 53)
ENC SI -> Arduino MOSI (pin 51)
ENC SO -> Arduino MISO (pin 50)
ENC SCK -> Arduino SCK (pin 52)
ENC GND -> Arduino GND
Flight Simulator addons often have specific internal variables that are not published in FSUIPC standard offsets. These values could be interresting for cockpit building. For example, A2A P47 addon does not publish turbo RPM value, but this parameter is essential…read more »
The XOR logical table can help with reading and computing rotary encoder output.
Rotary encoder has 2 outputs, that returns a state, using “grey” code. When encoder turns un Clockwise(CW), outputs are 01,00,10,11 and Counter Clockwise(CCW) outputs are 01,11,10,00.
How to talk with your simulator ?
Add-ons developper or cockpit builders have to access flight simulator variables, to mange or display them. If coding is not your cup of tea, you can use OpenCockpit software for example, a…read more »
IOcard is directly connected to PC parallel port, using a standard DB25 cable. IOcard consist on a network of multiplexed addressable latches. Programming is done by controlling parallel port signals.
PPORT_BASE is parallel port base address (0×378 for parallel…
Test driven programming is a base of Extreme Programming.
But this could be a good practice for any method…
What is test driven programming ?
A strict methodology shall be applied:
- Write a test that fails (ie
…read more »
As Flight Simulator published radio freqencies in BCD, it is necessary to convert them before computing frequency change.
Note: frequencies are not fully published in BCD. For example, for COM frequencies (VHF freq), the initial “1″ is not published, the…read more »