LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FRC Game Tools Game Controller Gyro

Is there currently a way to get the 2026 FRC tools to recognize gyro and accelerometer data from a Switch/Switch 2/PS4/PS5 controller to use as inputs for a robot?

0 Kudos
Message 1 of 2
(188 Views)

LabVIEW has a set of VIs that use Windows calls to support Joysticks.  It is possible it can also "see" Game Controllers.  The Functions that support Joysticks are on the "Input Device Control" functions found on the "Connectivity" palette.  They also will support X-Box controllers (I don't know about other controllers).

 

Rather then try to describe the "Joystick" VIs, I suggest you watch some You-Tube videos on "LabVIEW xbox controller".  Note that Buttons map to Booleans, the "analog" controls (Thumb controls, triggers, bumpers) map to analog values, and I don't remember what the D-pad maps to, but it should be obvious if you write yourself a little test program.

 

Bob Schor

 

0 Kudos
Message 2 of 2
(62 Views)