Professional Documents
Culture Documents
**Remark, this has not been fully tested. I might be that some text has the wrong parameter
Appendix
How to setup your plugin for hardware support
1) Define the Datarefs. Be sure you define them after XMC is loaded. You must find a way
to check XFMC is alive.
2) Read the Datarefs one by one. Maximum is 80 chars to be read in. Alignment of the
strings is already done in XFMC. There is a small difference in position of the strings due
the fact that XFMC writes on pixels, the data to the hardware FMC is recalculated to a
string of maximum 36 byte. A NULL char is inserted to be sure you wont read out of
memory, but better is to do your own checks
3) Example to reading the scratchpad
XPLMGetDatab(gScratch,buffer,0,XP_Buflengte); Make buffer more
then 80 chars long to be shure.
4) Sending data back to XFMC: XPLMSetDatai(gKeyPath,posx); where posx is
the byte you want to control the keypath.
After here you are on your own. We cannot help you setting up your plug-in .
A test plug-in will be provided as soon this work is completed. With this testplugin we checked all the
data going to a 2nd plug-in and coming back from that plug in, so we are sure our part of the work is
ok. You will be able to check it yourself as guide to trace problem.
Success!
example orignal and slave 1