|
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.
|