Port AB properly supported on Boost Move Hubs
This commit is contained in:
parent
f51f066c94
commit
b0b9a6c86b
@ -70,7 +70,7 @@ export class BoostMoveHub extends LPF2Hub {
|
|||||||
* Set the motor speed on a given port.
|
* Set the motor speed on a given port.
|
||||||
* @method BoostMoveHub#setMotorSpeed
|
* @method BoostMoveHub#setMotorSpeed
|
||||||
* @param {string} port
|
* @param {string} port
|
||||||
* @param {number | Array<number>} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
|
* @param {number | Array.<number>} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
|
||||||
* @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely.
|
* @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely.
|
||||||
* @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished.
|
* @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished.
|
||||||
*/
|
*/
|
||||||
|
@ -75,7 +75,7 @@ export class PUPHub extends LPF2Hub {
|
|||||||
* Set the motor speed on a given port.
|
* Set the motor speed on a given port.
|
||||||
* @method PUPHub#setMotorSpeed
|
* @method PUPHub#setMotorSpeed
|
||||||
* @param {string} port
|
* @param {string} port
|
||||||
* @param {number | Array<number>} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
|
* @param {number | Array.<number>} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
|
||||||
* @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely.
|
* @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely.
|
||||||
* @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished.
|
* @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user