|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Robot "kicks out" when it goes right
From the video, this looks like a code issue. Have you done anything at all to the code in the robot -- including re-loading it -- since the last time the robot worked properly? |
|
#2
|
|||||
|
|||||
|
Re: Robot "kicks out" when it goes right
While someone looks at the code for problems, have someone else double-check the wiring from your speed controllers to your motors. If something is cross-wired, you can get really weird results that only show up under specific conditions.
|
|
#3
|
|||||
|
|||||
|
Re: Robot "kicks out" when it goes right
We lost our old code from last year and are trying to reprogram it for an unofficial competition coming up soon. We are using the new compact cRIO - last year we had used the cRIO I. The robot hasn't worked well since we changed cRIOs and lost the code.
Our programmer was thinking that it had to do with pointers in C++; he had been getting the "MotorSafetyController.cpp at line 123" error, but he fixed that and the problem is still present. Quote:
|
|
#4
|
||||
|
||||
|
Re: Robot "kicks out" when it goes right
Are you using one or two Joysticks? Arcade or tank style? Are you using the WPI library functions for this, or home brew? |
|
#5
|
|||||
|
|||||
|
Re: Robot "kicks out" when it goes right
Quote:
@Alan: The wiring is solid. @akoscielski: We reset the jaguars but it is still having the problems. Whenever we move the drive joystick the SLIGHTEST bit towards the right, even a tiny, indistinguishable bit, the robot kicks out. |
|
#6
|
|||||
|
|||||
|
Re: Robot "kicks out" when it goes right
Quote:
My. GOD. The problem was that I forgot to put the sidecar power cable in. [sarcasm]I want to slit my wrists now.[/sarcasm] Sorry for wasting your guys' time. |
|
#7
|
||||
|
||||
|
Re: Robot "kicks out" when it goes right
Quote:
Could someone explain why this would cause the drivetrain would work fine in the forward, and reverse, and rotate left directions, but not in the rotate right direction? |
|
#8
|
|||||
|
|||||
|
Re: Robot "kicks out" when it goes right
Quote:
The DS can "sneak" some power from the PWM signals coming from the cRIO. When the robot is being commanded neutral, it's getting four 1.5ms pulses every so often, and that's enough to make it work. When it's being commanded either forward or reverse, two of the signals get shorter, but two get longer, and it balances out. When it's being commanded to turn left, all four signals get longer. But when it's being commanded to turn right, all four signals get shorter, the DS gets starved for power, and things stop working. |
|
#9
|
||||
|
||||
|
Re: Robot "kicks out" when it goes right
Thank you. The DS "sneaking power" from the cRIO's PWM signals was the puzzle piece I was missing. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|