Go to Post I'm definitely not advocating PVC tanks. I'm just saying that if you're going to be an idiot, please be slightly less of an idiot. - FourPenguins [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 11-02-2010, 22:51
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Pneumatics and drive together

We have a teleop sub vi in the main code. The teleop is now just being used for drive, but we tried to put our pneumatics code inside it. We first tried putting it in the code, but then just the pneumatics would work and the drive would not. Then we put the pneumatics in as a new sub vi and put it in our code. We had a lot more errors. pneumatics works alone and drive works alone. Why won't they work in the same project? We don't know what to do. Please help us
  #2   Spotlight this post!  
Unread 11-02-2010, 23:57
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,855
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: Pneumatics and drive together

Post the vi's or post the one where you've tried to combine them and we'll help debug it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 12-02-2010, 00:02
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Pneumatics and drive together

i can think of one thing that could be your problem if you are running the pneumatics on a relay
check the side car to make sure that the sidecars 5v,6v,and the one next to that are all lit
if not all 3 are lit fix the connection till you have all 3 lit
  #4   Spotlight this post!  
Unread 12-02-2010, 13:20
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Re: Pneumatics and drive together

Alright, we figured out that the problem was a watchdog error. The compressor watchdog is not being fed so the compressor only turns on and off and does not run continuously. How do we feed the watchdog without creating a while loop. We attached a picture of our code.
Attached Thumbnails
Click image for larger version

Name:	Teleop VI IMAGE.jpg
Views:	70
Size:	98.9 KB
ID:	8635  
  #5   Spotlight this post!  
Unread 12-02-2010, 13:26
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,855
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: Pneumatics and drive together

That style is so last year

All your Open statements should be moved to Begin.vi where they really belong. What's happening is you are opening and closing all your devices 50 times a second by having them in Teleop.vi.

Here's how the compressor and solenoids should be used.
Starting the compressor this way actually spins off a task where it runs by itself as long as the robot is on without bothering anyone else.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2010 at 13:31.
  #6   Spotlight this post!  
Unread 12-02-2010, 13:29
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Re: Pneumatics and drive together

Your link doesn't work.
  #7   Spotlight this post!  
Unread 12-02-2010, 13:31
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,855
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: Pneumatics and drive together

Sorry, it's better now.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 12-02-2010, 18:13
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Re: Pneumatics and drive together

thank you. We'll let you know how it goes.

Last edited by AmandaMay : 12-02-2010 at 18:30.
  #9   Spotlight this post!  
Unread 13-02-2010, 13:58
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Re: Pneumatics and drive together

We are still having big problems, we used your code, but we have 2 solenoid valves on the same button. We are still having watchdog feed errors. Our compressor goes on and off.
  #10   Spotlight this post!  
Unread 13-02-2010, 14:02
AmandaMay AmandaMay is offline
lead programmer
FRC #2557 (SOTA Bots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Tacoma Wa
Posts: 13
AmandaMay is an unknown quantity at this point
Re: Pneumatics and drive together

In our diagnostics, it says the refnum we are trying to get does not exist, and it says error <code>-44047 occured at solenoid. lvlib:
  #11   Spotlight this post!  
Unread 13-02-2010, 14:07
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,855
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: Pneumatics and drive together

That usually means that the name you typed in for the solenoid was mistyped.

I'd go to Begin.vi and copy the name of each device, then paste and wire it where you use it in Teleop.vi


Is the compressor going on and off rapidly?
Is there much pressure (by gauge reading) in the system when it's shutting off?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-02-2010 at 14:09.
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
pic: Team 624 2009 Final and Prototype Robot together. RazorTip360 Extra Discussion 5 22-03-2009 21:56
tying together FIRST, VEX, and FLL sburro General Forum 10 08-02-2006 12:31
do tracks and wheels together make a better robot? gondorf Rumor Mill 31 16-01-2006 16:06
BS2p and GSM modem together. ice-egoz Programming 0 18-07-2004 23:47
Putting two and two together... Andy Grady General Forum 13 08-01-2004 18:29


All times are GMT -5. The time now is 21:31.

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