Skip to content

NXT Drive

Non-Visible component
Category Requires Version
LEGO® MINDSTORMS® > NXT API 21, Android 5.0 Lollipop 1

Overview

A component that provides a high-level interface to a LEGO MINDSTORMS NXT robot, with functions that can move and turn the robot.

Methods

Move Backward

Move the robot backward the given distance, with the specified percentage of maximum power, by powering both drive motors backward.

Params
power Number
distance Number

Move Backward Indefinitely

Move the robot backward indefinitely, with the specified percentage of maximum power, by powering both drive motors backward.

Params
power Number

Move Forward

Move the robot forward the given distance, with the specified percentage of maximum power, by powering both drive motors forward.

Params
power Number
distance Number

Move Forward Indefinitely

Move the robot forward indefinitely, with the specified percentage of maximum power, by powering both drive motors forward.

Params
power Number

Stop

Stop the drive motors of the robot.

Turn Clockwise Indefinitely

Turn the robot clockwise indefinitely, with the specified percentage of maximum power, by powering the left drive motor forward and the right drive motor backward.

Params
power Number

Turn Counter Clockwise Indefinitely

Turn the robot counterclockwise indefinitely, with the specified percentage of maximum power, by powering the right drive motor forward and the left drive motor backward.

Params
power Number

Properties

Bluetooth Client

Component ➖ Write - Designer

The BluetoothClient component that should be used for communication.

Drive Motors

Text Default: CB ➖ Write - Designer

The motor ports that are used for driving: the left wheel's motor port followed by the right wheel's motor port.

Stop Before Disconnect

Boolean Default: True ➖ Read Write - Designer Blocks

Whether to stop the drive motors before disconnecting.

Wheel Diameter

Number Default: 4.32 ➖ Write - Designer

The diameter of the wheels used for driving.


Last update: November 9, 2022