Open bmegli opened 6 years ago
Start Byte | Size | Type | Payload | End Byte | |
---|---|---|---|---|---|
bytes | 1 | 1 | 1 | type dependent | 1 |
value | fixed 0xFB | 0-255 | defined set | type dependent | fixed 0xFC |
Preliminary
Type | Value | Payload bytes | Info |
---|---|---|---|
ODOMETRY | 0x01 | 28 | encoders and IMU quaternions |
XV11LIDAR | 0x02 | 15 | lidar data |
RPLIDARA3 | 0x03 | 138 | compressed ultra capsules, sequence |
Timestamp | Left encoder | Right encoder | QW | QX | QY | QZ | |
---|---|---|---|---|---|---|---|
bytes | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
type | uint32 | int32 | int32 | float | float | float | float |
unit | us | counts | counts | quaternion | quaternion | quaternion | quaternion |
Timestamp | Angle quad | Speed64 | Distances x 4 [mm] | |
---|---|---|---|---|
bytes | 4 | 1 | 2 | 8 |
type | uint32 | uint8_t | uint16_t | uint16_t x 4 (array) |
unit | us | 0,89 for 0-3,356-359 | rpm = Speed/64 | flag, distances or error_code |
Timestamp | Device ID | Sequence | Data | |
---|---|---|---|---|
bytes | 4 | 1 | 1 | 132 |
type | uint32 | uint8 | uint8 | ultra_capsules |
unit | us | ID | counts | RPLidarA3 internal |
Design and implement communication protocol for handling serial/USB communication.
MCU <--> higher level controller
Requirements:
Document the protocol on wiki