ultimate-bot-cli
v1.0.4
Published
CLI that interacts with the Makeblock Ultimate 2.0 Bot via MegaPi
Downloads
4
Readme
ultimate-bot-cli
CLI that interacts with the Makeblock Ultimate 2.0 Bot via MegaPi
Usage
$ npm install -g ultimate-bot-cli
$ bot COMMAND
running command...
$ bot (-v|--version|version)
ultimate-bot-cli/1.0.4 darwin-x64 node-v10.16.3
$ bot --help [COMMAND]
USAGE
$ bot COMMAND
...
Commands
bot dc-run
bot enc-get
bot enc-set
bot help [COMMAND]
bot line
bot mode
bot mode-speed
bot move
bot reset
bot rotate
bot stop
bot ultrasonic
bot dc-run
Runs a DC motor
USAGE
$ bot dc-run
OPTIONS
-d, --duration=duration (required) Duration in milliseconds
-p, --port=port (required) DC motor port
-s, --speed=speed [default: 100] Movement speed.
See code: src/commands/dc-run.js
bot enc-get
Reads encoder motor positions
USAGE
$ bot enc-get
See code: src/commands/enc-get.js
bot enc-set
Moves an encoder motor to a position
USAGE
$ bot enc-set
OPTIONS
-p, --port=port (required) Encoder motor port
-s, --speed=speed [default: 100] Movement speed.
-t, --position=position (required) Position to move to.
See code: src/commands/enc-set.js
bot help [COMMAND]
display help for bot
USAGE
$ bot help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
bot line
Reads line follower sensor
USAGE
$ bot line
OPTIONS
-p, --port=port (required) Port
See code: src/commands/line.js
bot mode
Gets or sets the MegaPi mode
USAGE
$ bot mode
OPTIONS
-m, --mode=0|1|2|3|4|6 New mode: 0 = manual mode, 1 = obstacle avoidance, 2 = balance, 3 = IR remote, 4 = line
following 6 = arm reset*
See code: src/commands/mode.js
bot mode-speed
Gets or sets the move speed for the following modes: obstacle avoidance, line following
USAGE
$ bot mode-speed
OPTIONS
-s, --speed=speed New speed
See code: src/commands/mode-speed.js
bot move
Move the Ultimate Bot
USAGE
$ bot move
OPTIONS
-d, --distance=distance [default: 500] Distance to move. Use negative values for reverse.
-s, --speed=speed [default: 100] Movement speed.
See code: src/commands/move.js
bot reset
This command resets the MegaPi board including motor home positions.
USAGE
$ bot reset
See code: src/commands/reset.js
bot rotate
Rotates the Ultimate Bot
USAGE
$ bot rotate
OPTIONS
-a, --angle=angle [default: 830] Rotation angle (not a standard unit, 830 is 180 degrees)
See code: src/commands/rotate.js
bot stop
Stops all motors
USAGE
$ bot stop
See code: src/commands/stop.js
bot ultrasonic
Reads the ultrasonic sensor and returns a distance
USAGE
$ bot ultrasonic
OPTIONS
-p, --port=port (required) Port
See code: src/commands/ultrasonic.js