|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Ok, here is the setup:
8" mecanums -> Nano Box -> CIM Motor -> Jag -> PWM -> DSC Programming in C++ using the FRC library (using polar plane) Problem: When the robot is up on blocks for testing purposes: Slow reverse - one set of wheels spins forward [light on jag indicates forward code (light is green)] and one set spins backwards (light is red) Full-speed reverse - both sets spin backwards Things we have already tried: Calibrated jags Swapped PWMs between ports - same problem occured on other side Put on new PWMs Put on different jags Same problem occurs on different DSC (so both sets of ports on both DSCs would have to be bad if this is the problem) Changed code to Cartesian plane Also, when we drive forward all works as expected (lights are green on jags and all wheels spin in the same expected direction) Could this possibly be a coding issue or are we missing something else? Last edited by rsegrest : 11-02-2012 at 19:39. Reason: Added information about code plane |
|
#2
|
||||
|
||||
|
Re: Programming or Electrical?
From what you describe, I'm inclined to settle on a coding issue. To conclusively determine whether it is, I suggest uploading skeleton code (my choice of preference would be tank drive) and comparing it with joystick input to see how it responds. If wheels turn forward and backward in response to forward and backward joystick motion, then you know it's a code problem.
If that isn't the case, however, I would suggest checking the neutral on your joysticks. An inconsistent neutral could possibly produce the symptoms you're observing (I know we've had problems with Logitech gamepads in this area before). Quote:
Just for clarification, I assume driving forward slowly and slamming the joysticks forward produce the appropriate responses? |
|
#3
|
||||
|
||||
|
Re: Programming or Electrical?
Yes this produces the expected result. Tank code has been loaded and works as expected with no problems.
|
|
#4
|
||||
|
||||
|
Re: Programming or Electrical?
Quote:
![]() |
|
#5
|
||||
|
||||
|
Re: Programming or Electrical?
Ok, so you know the old saying that the person who created a problem can't fix the problem? If we post code can you take a look and see if you see anything glaring out at you?
|
|
#6
|
||||
|
||||
|
Re: Programming or Electrical?
I could take a shot, but my experience is with Java and limited.
I'd advise reposting in the programming forum and include a short explanation of how it was determined to be a code issue (the tank drive test). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|