PaulStoffregen / X-Plane_Plugin

TeensyControls Plugin for X-Plane Flight Simulator
31 stars 15 forks source link

DataRef string limited to 58 characters #8

Open PaulStoffregen opened 6 years ago

PaulStoffregen commented 6 years ago

Communication between this plugin and a Teensy uses 64 byte packets. The first 6 bytes describe the data within the rest of the packet. Teensy sends the dataref names in those remaining 58 bytes.

Some time ago, FlightSimClass::xmit_big_packet was contributed on the Teensy side. It tries to send a larger message as multiple 64 byte packets. The problem is this plugin doesn't recognize and parse the multi-packet message.

I'm not really working on this plugin anymore. In fact, I no longer have any computer with xplane installed, much less the dev setup to compile and test the plugin. Help wanted from any Xplane enthusiast on this plugin....

JDeeth commented 6 years ago

A workaround from ages ago - use a plugin to create shorter aliases for those datarefs. https://github.com/JDeeth/InterfaceDataref It doesn't depend on any libraries other than the X-Plane SDK so it's no harder than Hello World to compile.