Packet 39 wire layout
The first byte is the application packet ID. The rows after it appear in decode order. Sizes exclude ENet headers, the outer wrapper prefix, LZF chunk framing, and compression effects.
| # | Field | Encoding | Bytes | Purpose |
|---|---|---|---|---|
| 0 | packet_id | u8 | 1 | Always 39 (0x27). |
| 1 | record_count | i32 LE | 4 | record count value. |
| 2 | records[].has_color | boolean u8 | 1 | Whether a three-byte BGR colour follows the packed coordinates. |
| 3 | records[].coordinates | 3 × packed i16 LE | 6 | X/Y low components plus packed Z and high-coordinate bits. |
| 4 | records[].color | BGR888 | 3 | Optional explicit colour.When: has_color = 1 |
Protocol convention
How to read this layout
LEmeans least-significant byte first.fixed16is two-byte sign-magnitude at 1/64 precision.orientation16uses the measured 1/8192 orientation mapping.- NUL strings consume their encoded byte length plus one
00terminator. - Counted arrays repeat immediately in the order shown.