Yes, you can modify the Python example for parsing address of the beacon as you have shown.
Current version of our example doesn't include this.
I thing the parsing string should be:
x, y, z, qw, qx, qy, qz, vx, vy, vz, ax, ay, az, HedgeAdr, timestamp, usnCRC16 = struct.unpack_from ('<lllhhhhhhhhhhBxLxxxxH', strbuf, pktHdrOffset + 5)
Note you can get IMU data from two (or more) mobile beacons only via modem, if 'IMU via modem' function is enabled in hedgehog's settings. And the rate of these data will be not 100 Hz but same as update rate of the system (8...16 Hz or less).
100 Hz IMU data can be received only from hedgehog and only for this hedgehog.
Thanks for your reply, I implement the code into the marvelmind.py, did get the hedgeadr in the reply from the hedge, but the hedgeadr is always zero instead the true hedgeadr it should be, please see the reply I got:
Code: Select all
[0.766, -4.003, -1.288, -0.01, 0.2231, -0.9729, 0.0596, 0.028, -0.019, 0.045, 0.479, -0.305, -19.719, [b]0[/b], 1829225]
in which from the last second position should be the hedgeadr.
And can you explain the 'IMU via modem' which I don't find any section in manual explain that. In my understanding, the 'IMU via Modem' means if connected via an USB cable, I can not only get the IMU data from which the USB cable connect to, but also can get the data from other hedges which are not connect via USB cable physically. Am I right?