|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Jaguar lights are solid, Labview is outputting code, robot not responding
Hey guys, I've been having a problem lately with the programming on our robot. We've developed a program and have gone to test it, but there has been a problem. When we hit a button on a joystick, the robot won't respond. However, the lights on all the Jaguars are on, and using probes in LabView tells me that there are being numbers sent to the Jaguars. The only vi's I've actually changed are Begin.vi and Teleop. We even brought in our programmer from the prior year, and he doesn't know what's wrong either. Does anybody have any ideas? Thanks very much!
|
|
#2
|
|||||
|
|||||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
Joystick buttons controlling motors, eh?
I'm guessing you have multiple buttons controlling the same motor. But I'd rather not try to advise you based on a guess. Tell us exactly what you expect the program to do, and post a picture of (or attach a copy of) your code if possible. |
|
#3
|
||||
|
||||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
Try flipping the pwm cables in the jags/spikes/talons 180 degrees, this -should- fix your issue,
|
|
#4
|
|||||
|
|||||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
A backwards PWM cable would not result in a Jaguar's LED being steady on.
|
|
#5
|
|||
|
|||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
Alright, here's part of our Begin.vi, the rest of Begin.vi has been left default.
http://imgur.com/LBu6yCu And here's the Teleop.vi. All of the Case Structures, when set to "False," simply output a zero. http://imgur.com/qfvEtoR Here's a basic rundown of what I want our program to do:
That's a basic rundown. As I said, the drive system works flawlessly. Also, we've determined there is no problem with the other motors, as we moved those over to the working (red and green) Jaguars, and they operated as expected. Running the code through LabView and using the probe tool shows that, towards the end of each line, the desired output is being to sent to the Tank Drive vi. If you need any more details, I'll try my best to provide you with them. I'm really quite new to LabView and programming in general, so the chance that I've made an elementary mistake is pretty high. Thanks again for the help! |
|
#6
|
|||||
|
|||||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
If you only have one motor you should not be using Open 2 Motor.
There is a single Motor Open you should be using instead, and Motor Set rather than Tank Drive. Those vi's are found under WPI Robotics Library -> Actuators -> Motor Control Using a PWM more than once as an input will invalidate it. Last edited by Mark McLeod : 09-02-2013 at 00:20. |
|
#7
|
|||
|
|||
|
Re: Jaguar lights are solid, Labview is outputting code, robot not responding
Quote:
Edit: Everything works now! Last edited by SPHogan : 09-02-2013 at 15:44. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|