
26
LEGACY FUNCTIONS
The following configuration parameters and packet format have been kept for compatibility with the initial
implementation.
It is advised not to use them anymore, and use newer packet formats
CONFIGURATION PARAMETERS
ADDRESS
PARAMETER NAME
LENGTH
(bytes)
TYPE
DESCRIPTION
0x38
PACKET_TYPE
1
u8
0x01
= CALIB_Type (Calibrated data)
0x02
= ORIENT_Type (Quaternions)
0x4F
SEND_BATT
1
u8
0:
-
1
: Battery Voltage is sent periodically with a dedicated packet
PACKETS FORMAT
CALIB_Type (Accelerometer, Gyroscope, Magnetometer)
Byte 0
Byte 1
Byte2
Byte3 .. Byte8
Byte9 .. Byte14
Byte15 .. Byte20
Byte21
0x20
PKT_ID
Pkt_count
ACC_DATA
GYR_DATA
MAG_DATA
CHECKSUM_XOR
Packet Header:
the first packet byte is always
0x20
PKT_ID:
the identifier for the packet type. For the calibrated data packet it’s
0x0B
PKT_COUNT:
progressive
packet number ranging from 0 to 255
CHECKSUM_XOR:
calculated as XOR of previous Bytes
ACC_DATA :
acceleration
data sub-packed as following:
Byte3
Byte4
Byte5
Byte6
Byte7
Byte8
AccX_L AccX_H
AccY_L
AccY_H
AccZ_L
AccZ_H
AccX_H : AccX_L
:
X
component
of the acceleration (2-complement)
AccY_H : AccY_L
:
Y
component
of the acceleration (2-complement)
AccZ_H : AccZ_L
:
Z
component
of the acceleration (2-complement)
GYR_DATA:
angular rate
data packed as following:
Byte9
Byte10
Byte11
Byte12
Byte13
Byte14
GyrX_L
GyrX_H
GyrY_L
GyrY_H
GyrZ_L
GyrZ_H
GyrX_H : GyrX_L
:
X
component
of the angular rate (2-complement)
GyrY_H : GyrY_L
:
Y
component
of the angular rate (2-complement)
GyrZ_H : GyrZ_L
:
Z
component
of the angular rate (2-complement)
MAG_DATA:
magnetic field
data packed as following:
Byte15
Byte16
Byte17
Byte18
Byte19
Byte20
MagX_L MagX_H MagY_L MagY_H MagZ_L MagZ_H
MagX_H : MagX_L
:
X
component
of the magnetic field (2-complement)
MagY_H : MagY_L
:
Y
component
of the magnetic field (2-complement)
MagZ_H : MagZ_L
:
Z
component
of the magnetic field (2-complement)