must be in [-2147483647, 2147483647] range
Optional
options: ServoCommandOptionsRotates virtual port motors to the specified positions (relative to zero).
WARNING: setting noFeedback to true can lead to the motor rotating forever (until the hub is switched off) if the next command is issued in quick succession. Use with caution.
Optional
options: ServoCommandOptionsRotates the motor by the specified degree (positive values rotate clockwise, negative values rotate counter-clockwise). The sign of the speed is ignored
WARNING: setting noFeedback to true can lead to the motor rotating forever (until the hub is switched off) if the next command is issued in quick succession. Use with caution.
The port to issue command at
Step in degrees
Optional
options: ServoCommandOptionsSee RotateByDegreeOptions
Sets the acceleration time for the motor. Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
acceleration time in milliseconds
Sets the deceleration time for the motor. Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
deceleration time in milliseconds
Starts motors rotation at the specified speed in synchronized mode (applicable only for virtual ports). Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
Optional
options: StartSpeedOptionsShifts motor's encoder zero position relative to current position. Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
Positive values shift the absolute zero clockwise, negative values shift the absolute zero counter-clockwise.
The port to set zero position at.
Target position in degrees.
Optional
positionModeId: numberPosition mode ID, defaults to WELL_KNOWN_PORT_MODE_IDS.motor[PortModeName.position]
Starts motor rotation at the specified power. Used to control Power Functions motors, e.g. LPF2-TRAIN Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
power in range [-100, 100]
power mode ID, defaults to WELL_KNOWN_PORT_MODE_IDS.motor[PortModeName.power]
Optional
options: StartPowerOptionsStarts motor rotation at the specified speed. Stream completes when the command is executed by the hub. Do not expect InProgress status to be emitted.
speed in range [-100, 100], where positive values rotate the motor clockwise, negative values rotate the motor counter-clockwise.
Optional
options: StartSpeedOptions
Rotates the motor to the specified position (relative to zero). Zero is the position when the motor was last switched on or connected to the hub. Positive values are calculated clockwise, negative values are calculated counter-clockwise.
WARNING: setting noFeedback to true can lead to the motor rotating forever (until the hub is switched off) if the next command issued in quick succession. Use with caution.