timeline-state-resolver
Version:
Have timeline, control stuff
18 lines • 668 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FocusDirectCommand = void 0;
const abstractCommand_1 = require("../abstractCommand");
class FocusDirectCommand extends abstractCommand_1.ViscaCommand {
constructor(position) {
super();
this.position = position;
}
serialize() {
const buffer = Buffer.alloc(4);
const positionPadded = this.toIntWithZeroes(this.position);
buffer.writeUInt32BE(positionPadded);
return Buffer.from([0x81, 0x01, 0x04, 0x48, ...buffer, 0xff]);
}
}
exports.FocusDirectCommand = FocusDirectCommand;
//# sourceMappingURL=focusDirectCommand.js.map