diff --git a/src/commands/CameraControlCommand.ts b/src/commands/CameraControlCommand.ts index 5246c401..091266ac 100644 --- a/src/commands/CameraControlCommand.ts +++ b/src/commands/CameraControlCommand.ts @@ -134,22 +134,9 @@ export class CameraControlCommand extends BasicWritableCommand> 11) + decimal - - if (invert) real = -real + const decodedValue = rawCommand.readInt16BE(offset) - props.numberData.push(real) + // Values are encoded as 5.11 fixed point floats + props.numberData.push(decodedValue / 2048) offset += 2 } break