Hi, my team is using the PROS operating system with LemLib this year, but we have a problem where about 2 seconds after the program starts running all the motors start moving forward very slowly despite being given no movement command. This happens with every project now, even ones that previously worked. Anyone have any idea what the issue could be?
If your controller is connected, it could be stick drift. Try calibrating your controller or using a different one.
Like @76782AHighVoltage said, it could be stick drift. We also had this problem because our inertial was acting up, but I don’t think switching an inertial will work for you. As always, try checking your motors on the robot, and setting the brake type in the code.
It isnt controller related because the controller isnt telling the motors to do anything, even when the controller is disconnected there is still this issue on all the motors that arent part of the drivetrain. I have tried factory restting brain and changing the battery, checling all the motor connections etc, no change the issue sitll occurs
Maybe send a move zero command to all motors? It sounds like the spin commands are exiting with the last command telling the motors to spin a speed.
Ive done this and also some more debugging, the controller seems to be sending the mex 32 but integer value for the controler stick value when it should be a value between -127 and 127. And for the buttons it is sending random values. This happens even when the controller and radio is disconnected so it might be a problem with how the controller is initialized. Though i used an older version of the project and that works fine, and there is no difference between them for set up
Finally resolved, I declared the controller in the config hpp instead of in the op_control function