Go to Post ADMIT IT! Dave Lavery has better legs than Amanda Morrison! - DCA Fan [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 08-02-2013, 19:19
SPHogan SPHogan is offline
Registered User
FRC #4232 (AHS Redbird Robotics)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Alton
Posts: 7
SPHogan is an unknown quantity at this point
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   Spotlight this post!  
Unread 08-02-2013, 20:51
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: 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   Spotlight this post!  
Unread 08-02-2013, 21:04
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
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   Spotlight this post!  
Unread 08-02-2013, 21:58
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: 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   Spotlight this post!  
Unread 09-02-2013, 00:11
SPHogan SPHogan is offline
Registered User
FRC #4232 (AHS Redbird Robotics)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Alton
Posts: 7
SPHogan is an unknown quantity at this point
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:
  1. Pushing a joystick forward moves a motor on one side. Since we have two joysticks, each controls a side. This works fine.
  2. We have a system that pushes frisbees into position to fire. This is "Queue." It is controlled by the throttle and Button 1 of the same joystick.
  3. Our "Launcher" mechanism is essentially the same thing. Controlled by the throttle and Button 1 of the other joystick, with the throttle setting speed.
  4. We want the "Lift" system to be controlled by two buttons. Button 2 sends a value of -1 and should lower the robot. Button 3 sends a value of 1 and should raise the robot.

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   Spotlight this post!  
Unread 09-02-2013, 00:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-02-2013 at 00:20.
  #7   Spotlight this post!  
Unread 09-02-2013, 00:18
SPHogan SPHogan is offline
Registered User
FRC #4232 (AHS Redbird Robotics)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Alton
Posts: 7
SPHogan is an unknown quantity at this point
Re: Jaguar lights are solid, Labview is outputting code, robot not responding

Quote:
Originally Posted by Mark McLeod View Post
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.

Using a PWM more than once as an input will invalidate it.
Oh wow, I wasn't aware that Single Motor Open existed. That seems like a pretty simple fix too. We have a work day tomorrow, so I'll go try that out and see how it works. Thanks!

Edit: Everything works now!

Last edited by SPHogan : 09-02-2013 at 15:44.
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 02:29.

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