hello, I’m trying to code a 6 motor user control drive, I’m trying to use this code and for some reason its not working, the axis’ are reading, I know beause when I printed the axis’ measure on the screen it showed fine but when I try to print the left/right values it just shows 0 no matter what I do on the controller I am using, any idea why this is happening?
The variables in your second screenshot should be moved inside the while loop, as if it is not, your values will not be continuously updating to where your joystick currently is.
Sorry about that, slight autocorrect error, should have been second snippet. That code should be moved into the while (true) loop so that the variable can be continuously updated