![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
LocalConfigFile/LocalConfigFile.h@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 | #ifndef LOCALCONFIGFILE_H_INCLUDED |
bapowell | 0:a5d13af495af | 2 | #define LOCALCONFIGFILE_H_INCLUDED |
bapowell | 0:a5d13af495af | 3 | |
bapowell | 0:a5d13af495af | 4 | #include "mbed.h" |
bapowell | 0:a5d13af495af | 5 | #include "ConfigFile.h" |
bapowell | 0:a5d13af495af | 6 | |
bapowell | 0:a5d13af495af | 7 | class LocalConfigFile : public ConfigFile { |
bapowell | 0:a5d13af495af | 8 | public: |
bapowell | 0:a5d13af495af | 9 | |
bapowell | 0:a5d13af495af | 10 | LocalConfigFile(char *filename); |
bapowell | 0:a5d13af495af | 11 | char getChar(char *key, char defaultVal); |
bapowell | 0:a5d13af495af | 12 | bool getBool(char *key, bool defaulVal); |
bapowell | 0:a5d13af495af | 13 | int getInt(char *key, int defaultVal); |
bapowell | 0:a5d13af495af | 14 | PinName getPin(char *key, PinName defaultVal); |
bapowell | 0:a5d13af495af | 15 | bool fillIntArray4(char *key, int *intArray); |
bapowell | 0:a5d13af495af | 16 | bool fillFloatArray4(char *key, float *floatArray); |
bapowell | 0:a5d13af495af | 17 | |
bapowell | 0:a5d13af495af | 18 | private: |
bapowell | 0:a5d13af495af | 19 | |
bapowell | 0:a5d13af495af | 20 | char _buf[100]; |
bapowell | 0:a5d13af495af | 21 | |
bapowell | 0:a5d13af495af | 22 | bool getValueIntoBuf(char *key); |
bapowell | 0:a5d13af495af | 23 | }; |
bapowell | 0:a5d13af495af | 24 | |
bapowell | 0:a5d13af495af | 25 | #endif // LOCALCONFIGFILE_H_INCLUDED |