The xplane_io (X-Plane I/O) program is used to establish network communications, via UDP, with the X-Plane flight simulator running on a computer. The code consists of class libraries that abstract the lower-level UDP packet encoding and decoding details, according to the UDP protocol specifications in X-Plane version 9. Any X-Plane DATA packets can be sent and received, and any X-Plane DataRefs can be set by sending DREF packets to X-Plane.
Dependencies: EthernetNetIf mbed ConfigFile
XPlaneUdp/XPlaneUdp_util.cpp@0:a5d13af495af, 2011-12-21 (annotated)
- Committer:
- bapowell
- Date:
- Wed Dec 21 22:29:59 2011 +0000
- Revision:
- 0:a5d13af495af
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bapowell | 0:a5d13af495af | 1 | |
bapowell | 0:a5d13af495af | 2 | void reverse4Bytes(char* bytes) |
bapowell | 0:a5d13af495af | 3 | { |
bapowell | 0:a5d13af495af | 4 | char temp; |
bapowell | 0:a5d13af495af | 5 | temp = bytes[0]; |
bapowell | 0:a5d13af495af | 6 | bytes[0] = bytes[3]; |
bapowell | 0:a5d13af495af | 7 | bytes[3] = temp; |
bapowell | 0:a5d13af495af | 8 | temp = bytes[1]; |
bapowell | 0:a5d13af495af | 9 | bytes[1] = bytes[2]; |
bapowell | 0:a5d13af495af | 10 | bytes[2] = temp; |
bapowell | 0:a5d13af495af | 11 | } |