6 motor drive c++

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?


image

Where is the second choice snippet? From the looks of it, it doesn’t seem like it’s ever being called, leading to the joystick values never updating.

1 Like

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.

1 Like

I Just tried adding it into the wait command and still doesn’t work, any other ideas?

what do you mean choice snippet? I’m not seeing what you mean everything I identified is being called

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

Do you mean the while(true) loop? Also, could you show the new code?

sorry yes I did and that my fault I had put the wrong cod into the while loop but it did work I just tested it now, thank you so much!

yes this worked, thank you very much