Go to Post why re-invent the wheel when it still rolls? just make it better. - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 14:08
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Code problems, I think.

The code deploys without error but when I take the joystick to all forward or backwords (1, -1) or full left or right, the motors stop working alltogether. If i slowly ramp up to full left, right, forward, or backwards though it works fine. I think this is a code problems so any help is much appreciated.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 14:12
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Code problems, I think.

How are your Jags set?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2010, 14:41
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

Sorry, I don't know what you mean. In the code I have opened 4 motors on jags. All the jumpers on the jags seem to be right. The wheels only stop now when i go about half power left, i can go full in all other directions.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2010, 14:46
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Code problems, I think.

Quote:
Originally Posted by Josh987 View Post
I don't know what you mean.
Oh, sorry. I meant to ask whether they are set to stop or coast.

Quote:
Originally Posted by Josh987 View Post
The wheels only stop now when i go about half power left, i can go full in all other directions.
Are you using any watchdog or wait delays in TeleOp?
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2010, 16:03
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

The jags are set to coast, no delays in the program. When the wheels stop working the jags get a slow yellow flash( think that means no servo connection.)
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2010, 17:50
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

So i have worked it down to this problem, when i have all 4 motors at full forward, the crio stops suppling power to the digital sidecar( the 5v light turns off). If i then toggle the enable, disable on the drivers station the digital sidecar turns on and then stops when at full power. We used a new battery and changed the side car.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #7   Spotlight this post!  
Unread 21-02-2010, 18:24
Michael Fadaie Michael Fadaie is offline
Registered User
FRC #3393
 
Join Date: Feb 2010
Location: Edgewood
Posts: 10
Michael Fadaie is an unknown quantity at this point
Re: Code problems, I think.

Our team had the same problem. Is the game adapter hooked up to the 12v spot on the pwer distribution board?

Last edited by Michael Fadaie : 21-02-2010 at 18:29.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-02-2010, 10:48
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

The game adapter is hooked up correctly, but we had it connected through the ethernet cable to the crio (Before it's asked, yes it was in port 1). I have tried multiple different codes, tank/arcade 4 wheel have the problem, even when i tried using 2 two wheel arcade drives the same problem occurred. I am starting to think this is a electrical problem not code so I might post it there.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #9   Spotlight this post!  
Unread 22-02-2010, 11:20
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

So the plot thickens, we have just found out that if you unplug any 2 pwm cables (that are connected to jags) the motors are able to go full power and the digital side car doesn't lose the 5v signal from the crio.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #10   Spotlight this post!  
Unread 22-02-2010, 11:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Code problems, I think.

Disconnect all the cables from your digital sidecar, including the 37 pin cable, but keep the power cable plugged in. When you do this, do all 3 power LEDs shine brightly? If not, you have a problem with the power cable.

I'm a little concerned when you say the digital sidecar looses it's 5v signal from the cRIO. Can you show some pictures of how its wired?
Reply With Quote
  #11   Spotlight this post!  
Unread 22-02-2010, 14:51
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

No, all 3 lights don't show up.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
  #12   Spotlight this post!  
Unread 22-02-2010, 16:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Code problems, I think.

Quote:
Originally Posted by Josh987 View Post
No, all 3 lights don't show up.
That's conclusive. You need to correct the 12v power input to the Digital Sidecar. It should come from a 20A circuit breaker on the Power Distribution board. Make sure the wires are stripped the proper length so that the Wago connectors (red/black and white) bite down on the bare wire.
Reply With Quote
  #13   Spotlight this post!  
Unread 22-02-2010, 22:19
Josh987's Avatar
Josh987 Josh987 is offline
That's what I say.
AKA: Josh
FRC #1565 (Think Tank Tech)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Hespeler, Canada
Posts: 17
Josh987 is an unknown quantity at this point
Re: Code problems, I think.

Yepp that was the problem, we had the wires reversed.
Thanks very much for all the help.
__________________
Charlieeeeee, Candy Mountain
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Labview problems and code problems ajsetter Programming 25 18-01-2006 17:07
Array problems( i think....) Andrew Blair Programming 10 22-09-2005 19:57


All times are GMT -5. The time now is 11:02.

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