Port AB properly supported on Boost Move Hubs

This commit is contained in:
Nathan Kunicki 2018-08-02 13:05:22 +01:00
parent f51f066c94
commit b0b9a6c86b
2 changed files with 2 additions and 2 deletions

View File

@ -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.
*/ */

View File

@ -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.
*/ */