new BaseEncoderMotor(port, slot)
It is a base Class of EncoderMotor
Parameters:
Name | Type | Description |
---|---|---|
port |
number | |
slot |
number |
Extends
Members
-
protocol
-
getter of protocol
only encoder motor on board has read value type
Methods
-
offsetAngle(angle)
-
set angle offset to last angle position
Parameters:
Name Type Description angle
Number [description]
Returns:
-
run() → {Object}
-
EncoderMotor run
Returns:
Object -the instance
- Overrides:
-
setReverse() → {Object}
-
EncoderMotor run reversely
Returns:
Object -the instance
-
setStop() → {Instance}
-
Stop motor
Returns:
Instance -the motor instance
- Inherited From:
-
speed(speed) → {Instance}
-
Set speed to the motor
Parameters:
Name Type Description speed
Number Returns:
Instance -the motor instance
- Overrides: