AutOBot Library
AutOBot Motor Setup (autobot_set_motors)
Manually assigns pins to control the four standard motors of the AutOBot. You can assign up to four motors using these functions, defining their respective A and B directional pins.
Arduino Generates
robot.setMotor1Pins(18, 19);
robot.setMotor2Pins(22, 23);
robot.setMotor3Pins(25, 26);
robot.setMotor4Pins(27, 14);
AutOBot Setup Drive (autobot_begin)
Initializes the AutOBot with a specific DriveType and deviation. The DriveType must be one of the enum values: DRIVE_DIFFERENTIAL, DRIVE_OMNI_3W, or DRIVE_MECANUM.
Arduino Generates
robot.begin(DRIVE_DIFFERENTIAL, deviation); // Example using Differential drive
AutOBot Simple Movement (autobot_move_simple)
Moves the AutOBot in standard directions and angular rotations using specific functions.
Arduino Generates
// Basic directional controls
robot.goForward(speed, timeMs);
robot.goBackward(speed, timeMs);
// Omni/Mecanum sliding maneuvers
robot.slideLeft(speed, timeMs);
robot.slideRight(speed, timeMs);
robot.slide(degree, speed, timeMs); // Slide at a specific degree (0-360)
// Rotational controllers
robot.rotateCW(speed, timeMs); //ro tate clockwise
robot.rotateCCW(speed, timeMs); //rotate counter-clockwise
AutOBot Drive Vector (autobot_drive)
Moves the AutOBot continuously using precise kinematics based on X, Y, and W (angular velocity) vectors continuously.
Arduino Generates
robot.drive(X, Y, W);
AutOBot Stop (autobot_stop)
Stops all AutOBot motors immediately.
Arduino Generates
robot.stop();
AutOBot Teleop (autobot_teleop)
Configures constraints and handles Bluetooth server connections for the AutOBot Teleop mode (Mobile Controller).
Arduino Generates
robot.telop();