View Single Post
  #18   Spotlight this post!  
Unread 10-01-2013, 12:17
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote