i have attached our teams code. we can not get it work with our victors.
here is the plan.
we need to:
run in tank mode on two joysticks.
one extra cim motor to run on the z axis of a third joystick
and a seperate motor to run on the x/y axis of the third joystick
servo to run off a button anywhere.
please help. it is crunch time and we can not get it to work.
when we upload this program, only one of the victors will run in the correct way. all the rest of them blink at us.
2011 Robot Project.zip (192 KB)
2011 Robot Project.zip (192 KB)
Code mostly looks okay.
Your extra motor control doesn’t match your description though.
Do you see any error messages on the Driver Station Diagnostics tab?
Are your joysticks associated with the USB position that you expect? (Setup tab and click a button to see their associated USB flash on the Driver Station)
Are you using PWM cables to connect the Victors to the Digital Sidecar?
The PWM cables are hard to get seated correctly in the Victors. Try reseating the ones that continue to blink when enabled.
Check the cable orientation (Black wire to the inside of the Victor, outside of the Sidecar).
Motor 3 (PWM 5) will never do anything in your code. The case statement it’s in will never be True and you call a CAN (not PWM) vi.
Autonomous Independent uses non-existent drive motors. And the DIO’s are not Opened in Begin.vi (an initial Framework error, not yours).