Go to Post You don't have to build a robot to be on a robot team. This isn't about the robot, it's about learning. - engunneer [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 Rating: Thread Rating: 4 votes, 4.00 average. Display Modes
  #1   Spotlight this post!  
Unread 13-02-2009, 14:20
huskyrobotics huskyrobotics is offline
Registered User
FRC #0848
 
Join Date: Mar 2007
Location: San Pedro CA
Posts: 21
huskyrobotics will become famous soon enoughhuskyrobotics will become famous soon enough
Tank Drive Code?

I'm the lead (student) programmer for team 848. We can't for the life of us get the tank drive system to work. Right now I'll explain what we have in coding and our Screen Caps from our CPU. Right now we have a Tank Drive VI inside the "While Loop" with 2 Open Joystick VIs outside the "while loop." I know that the sole Open Solenoid VI is a problem, but right now I just need the robot in a driveable state. Looking at our screenshots, are there any obvious mistakes that would keep us from driving right now in tank style? I should state that like alot of teams, we are just learning to do anything in LabVIEW and have no prior programming experience whatsoever. Any help is appreciated. Thanks.

Last edited by huskyrobotics : 13-02-2009 at 14:31.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2009, 21:09
professorX professorX is offline
Registered User
AKA: Xavier
FRC #1660 (The Harlem Knights)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New York
Posts: 62
professorX is an unknown quantity at this point
Re: Tank Drive Code?

You should try using the tank drive example that Labview included.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2009, 23:33
KayyPii's Avatar
KayyPii KayyPii is offline
Registered User
FRC #1404 (SHOCKs)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: Toronto
Posts: 45
KayyPii will become famous soon enough
Re: Tank Drive Code?

Have you tried to run the robot on real-time tether?
If you run the dashboard program while your robot is running on real time, you can check your PWM outputs aswell. That way you know if its a programming problem or something else.
__________________
=>"That hole you drilled is a little off."
=>"Don't panic, just make it bigger and put a washer on it!"

=>Eye ball once, and cut as many times as it takes

Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2009, 07:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Tank Drive Code?

I don't see anything wrong with the code. Make sure that you don't have a disabled robot, and describe what you see. Do the buttons respond to the joystick? If you probe the axis wires, do the numbers make sense?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2009, 17:30
RedWolf55AJ RedWolf55AJ is offline
Registered User
FRC #0848
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 7
RedWolf55AJ is an unknown quantity at this point
Re: Tank Drive Code?

Quote:
Originally Posted by professorX View Post
You should try using the tank drive example that Labview included.
We tried that. When we plug in our IP Address and Deploy/Run, no inputs work at all, as if the VI was blank. This is without changing anything on the Tank Drive Example.vi mind you. We can't understand why it is like it is.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2009, 20:57
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,112
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: Tank Drive Code?

Quote:
Originally Posted by RedWolf55AJ View Post
We tried that. When we plug in our IP Address and Deploy/Run, no inputs work at all, as if the VI was blank. This is without changing anything on the Tank Drive Example.vi mind you. We can't understand why it is like it is.
Are you sure that no inputs are working? Probe the joystick axis output values to see if they change as expected when you move the joysticks. If the probes follow the joystick motion, then you've isolated the problem to the outputs, and you can focus your troubleshooting on that part.

The easiest troubleshooting step is to look at your Driver Station display and make sure it says "Enabled" and "Teleoperated", and that it shows a reasonable battery voltage.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2009, 22:41
RedWolf55AJ RedWolf55AJ is offline
Registered User
FRC #0848
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 7
RedWolf55AJ is an unknown quantity at this point
Re: Tank Drive Code?

Quote:
Originally Posted by Alan Anderson View Post
Are you sure that no inputs are working? Probe the joystick axis output values to see if they change as expected when you move the joysticks. If the probes follow the joystick motion, then you've isolated the problem to the outputs, and you can focus your troubleshooting on that part.

The easiest troubleshooting step is to look at your Driver Station display and make sure it says "Enabled" and "Teleoperated", and that it shows a reasonable battery voltage.
Umm, Battery Voltage has always said "0.00" Is that a bad sign? Even when our robot drove, the driver station reported 0 voltage.

As far as probes go. The Probe on the wire from the "Get Axis" VI (the one connected to USB Port 1) reads like it should. the (Y axis reads correctly.) but the probe reports that the input is coming from USB Port 3. Thus no movement I guess...

For the Second "Get Axis" VI (the one connected to USB Port 2) no data is recorded. no matter what we do to the joystick, the probe reports nothing...
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2009, 23:20
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,520
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
Re: Tank Drive Code?

Quote:
Originally Posted by RedWolf55AJ View Post
Umm, Battery Voltage has always said "0.00" Is that a bad sign? Even when our robot drove, the driver station reported 0 voltage.
This happened to us a couple of times today. Typically, it would be accompanied by some slightly odd robot behavior. Restarting the robot seemed to do the trick, but it was obnoxious to wait for for the blinking to start so we could resume testing.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2009, 13:16
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: Tank Drive Code?

made sure to close the tank drive vi at the end of the while loop
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2009, 22:04
blackdeath's Avatar
blackdeath blackdeath is offline
Registered User
AKA: Shawn
FRC #2506 (Saber Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Franklin, WI
Posts: 6
blackdeath is an unknown quantity at this point
Re: Tank Drive Code?

Not related at all to your error, but down at the bottom of your code (first image) you are setting PWM4 and PWM5 to 255. The pwm outputs this year are NOT like last year's. Last year, it was from 0 to 255, with 0 being full reverse and 1 being full forward. This year, it is from -1 to 1, and I have not yet figured out which one is which for the axes, throttle, or motors.
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
Tank Drive Sauce Programming 1 05-01-2009 18:50
Where is tank drive in 2005 code? scottmso Programming 7 08-02-2006 22:03
omni drive vs tank |20807 61|2|_ Technical Discussion 49 17-01-2006 13:54
Tank Drive Idaman323 Programming 14 15-02-2005 09:01
tank drive Stormhammer Programming 11 29-01-2004 23:08


All times are GMT -5. The time now is 10:40.

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