I'm basically sending a bunch of sensor data from an Arduino across an XBee and parsing it in Max. It's 9 sensors (3-axis accel/gyro/magnetometer) and I'm sending each stream as two 8-bit Bytes using the following code format:
I was actually just sending single bytes before but the data kept jumping from 0-250 or so, but it makes sense now as it was just getting truncated.
So how do I combine those two bytes into a single int in Max?
I found this code that does it backwards (16bit int to two 8-bit bytes), but I can't figure out how to do it the other way around.