Here I have collected some of our first "pre-library" Arduino code developments since 2011, related to X-Plane UDP protocol, test code, evolution of algorithms for various input actuators, encoders, early code versions of Baron 58 cockpit program, etc..
Do not consider the samples collected here as practical or finished programs for you cockpit simulator!
These code samples are uploaded here for information purpose, some of them were written as tests programs for familiarizing with Ethernet UDP protocol used in X-Plane to adapt it for Ardino to get data from X-Plane and send data from Arduino to X-Plane.
Some of them ( such as "B58-final") were used in our Baron 58 simulator, before we switched to our later "library-plugin-based" interface.
As you could see, in the earlier program code the "DATA" type message protocol was used, and the size of the program code was huge. Later versions gradually become more compact, the "CMND" and "DREF" type messages was used as primary data protocol. On this page can read more about X-Plane Ethernet UDP protocol that initially was used in our Baron Arduino/X-Plane interface: X-Plane UDP Data exchange protocol.
All these programs were tested with Arduino Mega 1280 and Ethernet shield 5100.
Currently we are focused on the latest ArdSim/ArdSimX project only. The previous XPData and ARDref libraries are archived and no longer updated (supported only).