feetech-servo-ts
Version:
TypeScript SDK for Feetech servo motors using Web Serial API
27 lines • 1.21 kB
TypeScript
export declare const BROADCAST_ID = 254;
export declare const MAX_ID = 253;
export declare const HEADER: number[];
export declare const HEADER_LENGTH = 2;
export declare const ID_LENGTH = 1;
export declare const LENGTH_LENGTH = 1;
export declare const INSTRUCTION_LENGTH = 1;
export declare const ERROR_LENGTH = 1;
export declare const CHECKSUM_LENGTH = 1;
export declare const MIN_PACKET_LENGTH: number;
export declare const DEFAULT_BAUDRATE = 1000000;
export declare const DEFAULT_TIMEOUT = 1000;
export declare const DEFAULT_RETRY_COUNT = 3;
export declare const LATENCY_TIMER = 8;
export declare const TORQUE_ENABLE = 1;
export declare const TORQUE_DISABLE = 0;
export declare const MIN_POSITION_VALUE = 0;
export declare const MAX_POSITION_VALUE = 4095;
export declare const CENTER_POSITION_VALUE = 2048;
export declare const MIN_SPEED_VALUE = 0;
export declare const MAX_SPEED_VALUE = 1023;
export declare const VOLTAGE_UNIT = 0.1;
export declare const TEMPERATURE_UNIT = 1;
export declare function makeWord(lowByte: number, highByte: number): number;
export declare function getLowByte(word: number): number;
export declare function getHighByte(word: number): number;
//# sourceMappingURL=constants.d.ts.map