Go to Post Must...squish....bugs... :p - nighterfighter [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 06-03-2009, 09:19
purduephotog purduephotog is offline
Active Defense Design Engineer
AKA: Jason
FRC #3015
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Rochester, NY
Posts: 162
purduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the rough
Send a message via AIM to purduephotog
Labview Autonomous and Pneumatics

I tried a forum search and came up with nothing-

Would anyone have a code snippet or could explain to our students how to trigger pneumatic cylinders in autonomous mode? We currently *(as has been explained to me) have a watchdog timer that runs for 10 seconds to go straight.

Our drive system uses pneumatic cylinders to steer- so until we figure out how to turn we'll just go straight.... into the wall

Thanks in advance! (Posting from the competition now...)
__________________
http://purduephotog.deviantart.com
Portrait Photography: "I used to say Immortalized in Silver, but now I say Captured and Squeezed by Electrons".
  #2   Spotlight this post!  
Unread 06-03-2009, 09:31
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Labview Autonomous and Pneumatics

It's exactly the same as tele-operated mode. Are they having trouble making it work in autonomous mode?
__________________
Twitter Profile
  #3   Spotlight this post!  
Unread 06-03-2009, 12:13
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,756
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: Labview Autonomous and Pneumatics

I suspect the issue you have is getting the reference to the relay or spike so that auto can control it. You can do this by modifying the Robot Global and writing the refnums in Begin or outside of the loop in basic. Then read the global in Auto and control it. Use error I/O for sequencing, or sequence structure if you must.

Greg McKaskle
  #4   Spotlight this post!  
Unread 06-03-2009, 12:19
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: Labview Autonomous and Pneumatics

From your description I'm assuming you're using the Watchdog "Delay and Feed" to drive straight for 10sec. If you stay with "dead-reckoning" (i.e. driving for certain times rather than based on some sensor input like an encoder or a gyro), you can wire off of the "Delay and Feed" error output to have subsequent VI's (like firing a solenoid) run after the delay has expired. This accomplishes basically the same thing as a sequence structure or state machine for very simple sequences.

Make sure you've opened the solenoid outputs before your Auto runs - in the LV advanced framework you can do that in the Begin vi, and add the solenoid refs to the Robot Data cluster. Hope that helps.

Ron
Teams 2607 - software mentor
  #5   Spotlight this post!  
Unread 06-03-2009, 20:56
purduephotog purduephotog is offline
Active Defense Design Engineer
AKA: Jason
FRC #3015
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Rochester, NY
Posts: 162
purduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the rough
Send a message via AIM to purduephotog
Re: Labview Autonomous and Pneumatics

Quote:
Originally Posted by rrossbach View Post
From your description I'm assuming you're using the Watchdog "Delay and Feed" to drive straight for 10sec. If you stay with "dead-reckoning" (i.e. driving for certain times rather than based on some sensor input like an encoder or a gyro), you can wire off of the "Delay and Feed" error output to have subsequent VI's (like firing a solenoid) run after the delay has expired. This accomplishes basically the same thing as a sequence structure or state machine for very simple sequences.

Make sure you've opened the solenoid outputs before your Auto runs - in the LV advanced framework you can do that in the Begin vi, and add the solenoid refs to the Robot Data cluster. Hope that helps.

Ron
Teams 2607 - software mentor
Thanks Ron-

I had the students and the other mentor take a look at the note. They seemed to have an idea as to what it might be- but I'll just smile and nod and pull out the p-card....
__________________
http://purduephotog.deviantart.com
Portrait Photography: "I used to say Immortalized in Silver, but now I say Captured and Squeezed by Electrons".
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview Autonomous AND Teleop Two-Face Programming 1 14-02-2009 18:33
Basic autonomous on LabView Timshel Programming 0 30-01-2009 13:10
New TipJar Training Video - Autonomous Mode and LabVIEW Training Giveaway LVMastery NI LabVIEW 3 28-01-2009 07:06
Autonomous mode in Labview PinionTwister NI LabVIEW 3 10-01-2009 12:50
Autonomous questions (Labview) and some general issues Daniel_H NI LabVIEW 15 08-01-2009 21:07


All times are GMT -5. The time now is 01:59.

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