From b0b9a6c86bcc18e3e42ef50bcc1118bf1c4a383b Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Thu, 2 Aug 2018 13:05:22 +0100 Subject: [PATCH] Port AB properly supported on Boost Move Hubs --- boostmovehub.ts | 2 +- puphub.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boostmovehub.ts b/boostmovehub.ts index a05bf96..0412e65 100644 --- a/boostmovehub.ts +++ b/boostmovehub.ts @@ -70,7 +70,7 @@ export class BoostMoveHub extends LPF2Hub { * Set the motor speed on a given port. * @method BoostMoveHub#setMotorSpeed * @param {string} port - * @param {number | Array} 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.} 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. * @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished. */ diff --git a/puphub.ts b/puphub.ts index 8bb2453..b7474f9 100644 --- a/puphub.ts +++ b/puphub.ts @@ -75,7 +75,7 @@ export class PUPHub extends LPF2Hub { * Set the motor speed on a given port. * @method PUPHub#setMotorSpeed * @param {string} port - * @param {number | Array} 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.} 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. * @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished. */