Tank drive in wpilib (JAVA)

hello i need help making a tank drive in wpilib for java how do i do it? my teacher do nothing he lazy he say me go google it

Follow the WPILib “zero to robot” documentation; Step 4 is creating a drivetrain program. The examples use arcadeDrive but there is a tank drive function available as well.

3 Likes

Asking you to Google the answer may not be laziness, but instead to have you learn where to find the answers. Your coach can’t tell you each and every step for the rest of your life or career. During build season they also have the rest of your team to help as well. They cannot be your personal answer hub. You need to learn to Google and find answers on your own.

However as Peter said the WpiLib docs are the best place to start.

There are also examples of the code for tank in the examples

However just copy and pasting the code without understanding why you are doing it, isn’t gonna help you learn anything. Definitely read through the WpiLib guides as they explain it all really well.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.