View Single Post
  #6   Spotlight this post!  
Unread 02-02-2012, 15:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Joystick Buttons to Control Jaguars

If you place a standalone numeric constant and make it an integer, it will be blue. The constants in the snippet I posted were made as the very last step of creating the code, by right-clicking the Select function's input terminal and choosing Create Constant from the popup menu. Doing that makes them match the numeric representation of what they're being wired to. In this case, that's orange for floating point.

For these, you want to open a Motor, not a Drive. That's a couple of levels deeper in the function palette:

WPI Robotics Library -> RobotDrive -> Advanced -> Motor Control

Last edited by Alan Anderson : 02-02-2012 at 15:35.
Reply With Quote