View Single Post
  Spotlight this post!  
Unread 16-02-2012, 16:20
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Button motor control...

The triangle thing is a Select Node. If the boolean wired to the middle is true, then it will output the value wired to the top input. If the boolean is false, it will return the value wired to the bottom input.

The "buttons control" is an Unbundle By Name function. It takes a cluster input (the output to Joystick Get) and will "split" it up into its individual values.

As for controlling a motor via two buttons, I like to do it the attached way.
Attached Thumbnails
Click image for larger version

Name:	button motor drive.png
Views:	104
Size:	12.5 KB
ID:	11929  
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote