Hello,
We are having trouble getting the default mecanum drive code up and running. Currently when the code is deployed the robot goes full speed forward even when the joystick is in the center position. When we move the joystick the robot moves full power in that direction.
We also tried the mecanum with arm in the simulator and the robot just spins in a clockwise circle without any input from the joystick.
Is anyone else having this problem?
Thanks for your help,
Garrett
Make sure you have calibrated your speed controllers correctly. Additionally, make sure your joysticks are working correctly with your computer (Control Panel > Devices And Printers > right click controller > game controller settings > properties). Also, check to see that you are sending the right axis to the right input of the VI (Axis 1 and 2 on an attack 3 joystick are X and Y respectively, Axis 3 is the throttle knob).
You can use the Joy Stick Explorer to verify joystick axis and values:
http://firstforge.wpi.edu/sf/frs/do/viewRelease/projects.wpilib/frs.joystick_explorer.joystick_explorer
Maybe your joysticks are faulty. Try running the program from the main block diagram, and go in to your teleop code and put a probe on the joystick outputs.
if all else fails, reimage the Crio and start a new project… sometimes a fresh start is the easiest way to fix a problem.
Thanks,
Apparently the throttle has to be centered and not all the way down.
Garrett