This example shows how to set up tank drive with SPARK MAX.
Set the variables at the beginning of the example to match your setup.
leftDeviceID
- Right motor CAN device IDrightDeviceID
- Left motor CAN device IDControl the left motor by moving the left joystick up or down.
Control the right motor by moving the right joystick up or down.