Go to Post As a team sponsor, we are more concerned with the behavior, attitude and commitment to FIRST ideals than specific performance in the competition. Some of our teams perform well, some struggle, some are in the middle. We support them all in every way we can. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2012, 19:12
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Question Programming or Electrical?

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?
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown

Last edited by rsegrest : 11-02-2012 at 19:39. Reason: Added information about code plane
  #2   Spotlight this post!  
Unread 11-02-2012, 19:49
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
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:
Originally Posted by rsegrest View Post
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
One side of your drive should be green and the other side red when going backwards. The reason is the change in orientation of the motors; telling two motors to go forward will always turn their shafts in the same direction with respect to the output face, but not necessarily the same direction with respect to the frame due to changes in orientation. As such, full-speed reverse should turn one side of your drive green and the other red, but one side going forwards and the other backwards should be indicated by one consistent color (either all green or all red).

Just for clarification, I assume driving forward slowly and slamming the joysticks forward produce the appropriate responses?
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #3   Spotlight this post!  
Unread 11-02-2012, 19:59
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Programming or Electrical?

Quote:
Originally Posted by slijin View Post
Just for clarification, I assume driving forward slowly and slamming the joysticks forward produce the appropriate responses?
Yes this produces the expected result. Tank code has been loaded and works as expected with no problems.
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #4   Spotlight this post!  
Unread 11-02-2012, 20:15
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Programming or Electrical?

Quote:
Originally Posted by rsegrest View Post
Yes this produces the expected result. Tank code has been loaded and works as expected with no problems.
In that case, it's most definitely a code issue.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #5   Spotlight this post!  
Unread 11-02-2012, 22:35
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
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?
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #6   Spotlight this post!  
Unread 11-02-2012, 23:20
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
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).
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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