FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing joystick and keyboard inputs

Hi. This is my second year working with Labview for the First Robotics Competitions and I have been looking at some of the VIs in the WPI Robotics Library... more specifically at the Joystick functions. As I was browsing through the functions I noticed that there was no Initialize Joystick VI nor Aquire Input Data VI (Both found in the Connectivity part of the functions pallett) in any of the Joystick VI's. So my main question is how does these set of VI's actually access the Joystick inputs? All I see are data transfers via arrays and cluster operations.

0 Kudos
Message 1 of 2
(3,633 Views)

The joystick is connected to the classmate, not directly to the cRIO.  The driver station software (running on the classmate) opens the joystick and transfers values to the cRIO when a connection is established.  I don't have the FRC code available to look at the details, but what you're seeing is probably the transfer of data from the VIs that handle driver station communication, to the VIs that return the joystick data.

0 Kudos
Message 2 of 2
(2,791 Views)