Go to Post We score 8 out of 10 every match. Oh wait, that's just what it does in theory. ;) Man, I wish that theory worked. - Chriszuma [more]
Home
Go Back   Chief Delphi > Technical > Programming
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Team 221 LLC
ADVERTISEMENT

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-11-2010, 09:51 PM
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 02-11-2010, 10:57 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,787
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.
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye
  #3   Spotlight this post!  
Unread 02-11-2010, 11:02 PM
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: 237
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 02-12-2010, 12:20 PM
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:	69
Size:	98.9 KB
ID:	8635  
  #5   Spotlight this post!  
Unread 02-12-2010, 12:26 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,787
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.
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye

Last edited by Mark McLeod : 02-12-2010 at 12:31 PM.
  #6   Spotlight this post!  
Unread 02-12-2010, 12:29 PM
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 02-12-2010, 12:31 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,787
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.
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye
  #8   Spotlight this post!  
Unread 02-12-2010, 05:13 PM
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 : 02-12-2010 at 05:30 PM.
  #9   Spotlight this post!  
Unread 02-13-2010, 12:58 PM
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 02-13-2010, 01:02 PM
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 02-13-2010, 01:07 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
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: 6,787
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?
__________________
"Everyone you will ever meet knows something you don't" - Bill Nye

Last edited by Mark McLeod : 02-13-2010 at 01:09 PM.
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 03-22-2009 08:56 PM
tying together FIRST, VEX, and FLL sburro General Forum 10 02-08-2006 11:31 AM
do tracks and wheels together make a better robot? gondorf Rumor Mill 31 01-16-2006 03:06 PM
BS2p and GSM modem together. ice-egoz Programming 0 07-18-2004 10:47 PM
Putting two and two together... Andy Grady General Forum 13 01-08-2004 05:29 PM


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

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School