Go to Post FIRST may very well be the healthiest drug on the market. - Herodotus [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2015, 17:28
M.Kong-Sivert M.Kong-Sivert is offline
Registered User
AKA: Mackenzie Kong-Sivert
FRC #2375 (Dragon Robotics)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Phoenix, Arizona
Posts: 45
M.Kong-Sivert is an unknown quantity at this point
Pneumatics

Our team has not used pneumatics on the robot since 2010, so nobody remembers how to program it. We were setting it up today, but it wouldn't work, and we can't figure out what went wrong. Does this program look right? Thank you.
Attached Thumbnails
Click image for larger version

Name:	mac_idea_code teleop.PNG
Views:	70
Size:	21.0 KB
ID:	17797  Click image for larger version

Name:	mac_idea_code ptasks.PNG
Views:	54
Size:	27.8 KB
ID:	17798  Click image for larger version

Name:	mac_idea_code begin.PNG
Views:	55
Size:	51.5 KB
ID:	17799  
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2015, 18:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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

That uses button #2 on the game controller, not the trigger if that's what you were thinking "1" mapped to. The trigger would be index 0.

You can actually delete all the compressor code you have there.
Some of it is incorrectly placed, but it isn't explicitly necessary anymore with the roboRIO. If you Open a Solenoid, the compressor automatically gets created too.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2015, 23:55
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 221
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Pneumatics

Just a couple of thengs here. No need for compressor code, that's automatically created and handled by the new pneumatics module this year. You can also be a boolean value directly into a "solenoid set", no need for the select. Hope I could help.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2015, 08:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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

Quote:
Originally Posted by Skyehawk View Post
You can also be a boolean value directly into a "solenoid set", no need for the select.
That only works for a single solenoid not for a double which the OP's code handles.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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


All times are GMT -5. The time now is 08:47.

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