Drive Control

Drive Control

When figuring out your drive control you always want to collaborate with your driver for their preferences for joystick programming. When programming, you always want to make sure you set your joysticks to a variable then use that variable to set your motor powers in order to move the robot. For example, in the K9TankDrive:

Left and right are floats, meaning they are really long decimals. After setting the joystick values to a variable, you want to set the variable to the motor in order to allow the robot move.
Example:

After you do this you should be able to move forward and backward and turn with a simple tank drive! This drive only uses the 2 wheels in the back, and you can add the front two to use all 4. But in order to use a different drive train such as a holonomic drive, you need to figure out the formulas to make the robot move correctly: this will be gone over in greater depth in the advanced programming page!

Skip to toolbar