So our team is having difficulty driving completely straight at 100% power because we use tank drive. To control our bot we use an Xbox controller - Left 2 motors (y-splitter) connected to pwm 0, controlled by left stick - Right 2 motors (y-splitter) connected to pwm 1, controlled by by right stick.
We want to add a boolean function to a button that makes both drive trains move together at 100% speed. I was able to just create the function for the button separately from the rest of the drive train code, but they were trying to override each other.
I understand why that is happening, but I’m not quite sure what logic to use to connect them such that - when the button is not pressed, the drive train refers to the 2-stick axes, and also vice-versa.