add decoder for tracked point position submodule

This commit is contained in:
2025-03-15 08:40:50 -05:00
parent 122b546ba2
commit 38fdf91092
4 changed files with 62 additions and 0 deletions
+17
View File
@@ -35,6 +35,23 @@ const goodTests = [
},
decoder: Decoders.CentroidPosition,
},
{
description: 'Tracked Point Position',
bytes: new Uint8Array([
0x06, 0x00, 0x1e, 0x00, 0x10, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
]),
expected: {
type: 0x06,
size: 0x1e,
latency: 16,
x: 1.0,
y: 2.0,
z: 3.0,
index: 1,
},
decoder: Decoders.TrackedPointPosition,
},
{
description: 'Orientation (Quaternion)',
bytes: new Uint8Array([