|
Re: Using a (Logitech) Controller?
You will need to run RobotMain, and then on the driver station panel, enable the robot in teleop mode.
This is more complicated than it would need to be to simply read from a joystick, but that is because it is assuming that your purpose in doing this is to safely drive a robot on a FIRST field.
The DS actually reads the joysticks and communicates it to the robot. Your code reads the joystick settings from the robot service, and then you can turn on motors, etc. The DS and robotMain framework also control which code on your robot is actually executed and whether it is allowed to turn motors.
Greg McKaskle
|