NxtDrive
Last Updated On 2021-07-16
Version 1MinSDK 7Tutorial Video
A component that provides a high-level interface to a LEGO MINDSTORMS NXT robot, with functions that can move and turn the robot.
Properties
You can set the below properties in the UI part of the builder.
- BluetoothClient - it's a BluetoothClient value which is set to blank by default.
- DriveMotors - it's a string value which is set to cb by default.
- StopBeforeDisconnect - it's a boolean value which is set to true by default.
- WheelDiameter - it's a float value which is set to 4.32 by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
StopBeforeDisconnect
Whether to stop the drive motors before disconnecting.
Methods
You can set the below method blocks in the blocks section of the builder.
MoveBackward
Move the robot backward the given distance, with the specified percentage of maximum power, by powering both drive motors backward.
MoveBackwardIndefinitely
Move the robot backward indefinitely, with the specified percentage of maximum power, by powering both drive motors backward.
MoveForward
Move the robot forward the given distance, with the specified percentage of maximum power, by powering both drive motors forward.
MoveForwardIndefinitely
Move the robot forward indefinitely, with the specified percentage of maximum power, by powering both drive motors forward.
Stop
Stop the drive motors of the robot.
TurnClockwiseIndefinitely
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.
TurnCounterClockwiseIndefinitely
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.