|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
|||
|
|||
|
Re: Code problems, I think.
How are your Jags set?
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: Code problems, I think.
Oh, sorry. I meant to ask whether they are set to stop or coast.
Are you using any watchdog or wait delays in TeleOp? |
|
#5
|
||||
|
||||
|
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.)
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
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.
|
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
||||||
|
||||||
|
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? |
|
#11
|
||||
|
||||
|
Re: Code problems, I think.
No, all 3 lights don't show up.
|
|
#12
|
|||||
|
|||||
|
Re: Code problems, I think.
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.
|
|
#13
|
||||
|
||||
|
Re: Code problems, I think.
Yepp that was the problem, we had the wires reversed.
Thanks very much for all the help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |