import type { MotorLed, MotorServoState } from "./enum.js"; /** */ export type MotorState = { servo: MotorServoState; /** * Raw int8 angle output in half-degrees. Range is -61 to 61 and device report * seems to be noisy. Impossible -128 if servo is in motion. * * @see {@link MOTOR_MAX_TILT} */ rawAngle: number; /** * Servo angle converted to degrees. Undefined if servo is in motion. */ angleDegrees?: number | undefined; /** * Raw accelerometer output in device units. Device report seems noisy. * * Right-hand rule for an upright device looking at you: Point your thumb at * your chest, with your palm towards the floor. * @see {@link ACCEL_PER_G}. */ rawAccel: [stageleft: number, down: number, upstage: number]; /** * Accelerometer data converted to gravity units. * * Right-hand rule for an upright device looking at you: Point your thumb at * your chest, with your palm towards the floor. */ accelG: [stageleft: number, down: number, upstage: number]; }; /** Kinect motor device */ export declare class Motor { private readonly device; readonly ready: Promise; /** * @param device USB device instance */ constructor(device: USBDevice); /** Get current motor position and state */ getPosition(): Promise; /** * Set motor tilt angle * @param degrees Tilt angle in degrees, -31 to 31 */ setPosition(degrees: number): Promise; /** * Set motor LED state * @param led LED configuration */ setLed(led: MotorLed): Promise; } //# sourceMappingURL=motor.d.ts.map