1.0.4 • Published 4 years ago

ultimate-bot-cli v1.0.4

Weekly downloads
1
License
CC0-1.0
Repository
github
Last release
4 years ago

ultimate-bot-cli

CLI that interacts with the Makeblock Ultimate 2.0 Bot via MegaPi

oclif Version Downloads/week License

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

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

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago