We have a device in the Operator Interface (OI) console that looks like a Joystick to the computer. This joystick has 5 digital inputs and a number of digital outputs.
We need to add a Joystick object in the Robot Map that allows us to define this joystick and the various controls we are going to potentially use. Check last year's code for the button input map. Joshua Phelps will provide the output id for the LED. Setting the LED is as easy as:
stick.setOutput(2, true); // sets the LED on channel 2 to ON