Robot moves for 1 second, then stops.

Right now we are trying to introduce a logitech gamepad into our code instead of a single joystick. We coded it in but now when we initialize teleop the robot moves for an unknown reason for about a second, then stops.

GamePad.cpp (6.63 KB)
GamePad.h (2.67 KB)
MyRobot.cpp (5.76 KB)


GamePad.cpp (6.63 KB)
GamePad.h (2.67 KB)
MyRobot.cpp (5.76 KB)

one problem is that you are declaring both your cockingMotor and your cockingServo on PWM 6, and the code is probably crashing because of it.