Go to Post I know I exaggerated a bit, but NASA put a man on the moon with less processing than some FRC bots. Think about that for a minute. - JesseK [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 29-01-2011, 15:32
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Solenoid button toggle

I was wondering where you get the button function?



also, i was wondering if anyone knew why my solenoid code is not working, also it is currently spitting out random watchdog errors while the robot is running, does anyone have a solution (LABVIEW ONLY)
  #2   Spotlight this post!  
Unread 29-01-2011, 16:06
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: Solenoid button toggle

http://i1226.photobucket.com/albums/.../Untidtled.png (this was supposed to be the 2nd picture)
  #3   Spotlight this post!  
Unread 29-01-2011, 16:35
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,585
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Solenoid button toggle

Quote:
Originally Posted by mike1010100 View Post
I was wondering where you get the button function?
The item you circled is a feedback node.
  #4   Spotlight this post!  
Unread 29-01-2011, 19:58
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,851
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: Solenoid button toggle

The screen shot tells you where everything used in that image can be found.
The Feedback node is found in the Programming -> Structures palette.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 02-02-2011, 11:28
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: Solenoid button toggle

Quote:
Originally Posted by mike1010100 View Post
also it is currently spitting out random watchdog errors while the robot is running, does anyone have a solution (LABVIEW ONLY)
Have you re-imaged your cRIO to the 2011 version and are you using the 2011 FRC Robot Project LabVIEW code? We had watchdog errors before we re-imaged the cRIO (it had the 2010 image on it) even when we were using a 2011 FRC Robot Project with the example code in LabVIEW.
  #6   Spotlight this post!  
Unread 02-02-2011, 18:50
NetPlanet NetPlanet is offline
Registered User
AKA: Michael Bilinsky
FRC #0296 (The Northern Knights)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Montreal, Qc
Posts: 23
NetPlanet is an unknown quantity at this point
Re: Solenoid button toggle

I'm assuming you want to get the button? The button was unbundled from a cluster, and if memory serves me right, it can be found under programming->Cluster->"Unbundle by name". Hook that up to the joystick get and select what button you want to retrieve. That solenoid code wouldn't do much as it is immediately turning off the solenoid after turning it on. This happens so fast you probably wouldn't notice. The 10 mili second timer causes the delay between iterations of the big loop, and not between the two loops that the solenoids are in. Yet even that is really fast. But most importantly, why are you doing this all in your periodic tasks? If I am understanding what you are trying to do, you might want to put the code in the teleop vi for convention's and safety's sake.
__________________
Checkout my new blog! >> www.netopyaplanet.com
~yay
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 12:25.

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