mirror of
https://github.com/jwetzell/rttrp-js.git
synced 2026-08-21 06:49:07 +00:00
add decoder for tracked point position submodule
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user