Drivetrain code not functioning when it appears it should

Hello, my team is currently trying to program a H style drivetrain in vexcode blocks and the code is not moving the motors at all when it is run on the robot. Since I want to have the option of changing controller sensitivity with variables in code and since we have a 5 motor drivetrain I have set up two motor groups, one for the left side and one for the right as well as added a single motor for the central wheel to shift side to side rather than configuring an actual drivetrain device. I have also left the controller configuration in the devices tab blank to just pull joystick values from it in the code. I’ve coded the basic driver control code below:


When this is loaded onto the robot and run, we move joysticks and nothing at all happens with any of the motors. I’ve been able to use print statements to the brain in this program to confirm that it is receiving controller values properly and move all of the motors from the devices menu on the brain to confirm that they are all connected and working. I also used print statements to see that the looping structure of the program is running correctly and the custom block is being called, yet still nothing happens with the motors. If you have any other ideas that could help us out please let me know.

You need to spin the motors somewhere

7 Likes

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