EncoderMotorOnBoard()

EncoderMotorOnBoard sensor module

new EncoderMotorOnBoard()

Extends

Members

protocol

getter of protocol
only encoder motor on board has read value type

Inherited From:

Methods

offsetAngle(angle)

set angle offset to last angle position

Parameters:
Name Type Description
angle Number

[description]

Returns:
Inherited From:

readAngle() → {Promise}

get angle offset to the start position

Returns:
Promise -

return promise

readSpeed() → {Promise}

Get Speed of the encoder motor runs

Returns:
Promise -

return promise

run() → {Object}

EncoderMotor run

Returns:
Object -

the instance

Inherited From:

setReverse() → {Object}

EncoderMotor run reversely

Returns:
Object -

the instance

Inherited From:

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

Inherited From: