Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   One side of drivetrain not working properly (http://www.chiefdelphi.com/forums/showthread.php?t=112758)

MrTechCenter 04-02-2013 20:08

One side of drivetrain not working properly
 
For some reason, whenever we enable our robot, the left side of our drivetrain runs at full power. We can still override it with a joystick...to an extent. When the joystick value returns to "0" the motors continue to run. We are using VexPro ball shifters with two CIMs per side all being controlled by four Victor 888s. The Victors are connected to the Digital Sidecar via two PWM-Y cables, one for each side. We are using LabView 2013 for programming.

BitTwiddler 04-02-2013 20:15

Re: One side of drivetrain not working properly
 
What happens if you disconnect the PWM cable for the left side?

MrTechCenter 04-02-2013 20:18

Re: One side of drivetrain not working properly
 
The left side doesn't run.

Kusha 04-02-2013 20:21

Re: One side of drivetrain not working properly
 
Try replacing the ribbon cable from the c-rio to the sidecar.

MrTechCenter 04-02-2013 20:29

Re: One side of drivetrain not working properly
 
Replacing the ribbon cable did not help.

BitTwiddler 04-02-2013 20:31

Re: One side of drivetrain not working properly
 
Quote:

Originally Posted by MrTechCenter (Post 1227563)
The left side doesn't run.

OK, something is commanding the motor controller to go forward (or reverse as the case may be). i.e. you are getting a pulse width <> 1.5 ms.

MrTechCenter 04-02-2013 20:37

Re: One side of drivetrain not working properly
 
It is definitely a code problem, because with a brand new cRIO project, it worked fine.

BitTwiddler 04-02-2013 20:40

Re: One side of drivetrain not working properly
 
[quote=MrTechCenter;(30 minutes later after looking through every inch of the code): I found the problem! PWM was backwards./QUOTE]
It's amazing the way those pesky cables manage to turn themselves around, isn't it?

MrTechCenter 04-02-2013 20:50

Re: One side of drivetrain not working properly
 
All PWMs are plugged-in correctly and into the right ports on the Digital Sidecar. It worked properly when we tried it once and we didn't change anything after that on the robot or the code except for accidentally breaking a single wire in the code and replacing it, and we made sure that everything else was exactly the same, and no other wires in code were broken. But for some reason, it's not working again.

BitTwiddler 04-02-2013 22:08

Re: One side of drivetrain not working properly
 
Quote:

Originally Posted by MrTechCenter (Post 1227585)
It is definitely a code problem, because with a brand new cRIO project, it worked fine.

Agreed. I think it is the code.
I bet it will run fine with another try with a new project using the default FRC code.

Mark McLeod 04-02-2013 22:16

Re: One side of drivetrain not working properly
 
Quote:

Originally Posted by MrTechCenter (Post 1227598)
All PWMs are plugged-in correctly and into the right ports on the Digital Sidecar. It worked properly when we tried it once and we didn't change anything after that on the robot or the code except for accidentally breaking a single wire in the code and replacing it, and we made sure that everything else was exactly the same, and no other wires in code were broken. But for some reason, it's not working again.

If you want to zip up the entire project and attach it, we can take a look.

Team3266Spencer 04-02-2013 22:22

Re: One side of drivetrain not working properly
 
Did you try re-calibrating the victors?

MrTechCenter 04-02-2013 22:56

Re: One side of drivetrain not working properly
 
The coding laptop is at our shop, so I can't upload the project as of right now. We have not yet re-calibrated the Victors. Tomorrow, we are going to just start our code over from scratch and see if the problem reoccurs.

apalrd 04-02-2013 23:28

Re: One side of drivetrain not working properly
 
Unplug the joysticks and plug them back in.

When you plug in a joystick, it re-calibrates itself to zero where it is when you plug it in. If you leave a gamepad upside down and plug it in, and it is resting on the stick, then when you pick it up and it spring returns to center it will have learned an incorrect zero point and will now be holding a nonzero value at what should be zero.

In LabVIEW, if you hit the Run button in code and wait for it to deploy, you can click on a wire to view the value of that wire in a probe watch window. That can be helpful for finding where numbers come from in more complex code.


All times are GMT -5. The time now is 13:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi