POV Hat for game controllers

We’re using the xbox 360 controller for our robot this year, and it would be very useful if we could use the POV hat. However, under the WPI’s joystick vi, it only returns values of -1 and 1 for either the left or right side, and not the angles 45, 90, 180, etc that NI’s vi uses. Could I use NI’s vi with the robot code, or is that not possible/easy. And if anyone knows how to use the POV hat with WPI’s vi, that would be good too. Oh, and if there’s already a post for a solution to this, I couldn’t find it, and I would appreciate a link to it. Thanks!

According to [Mark McLeod]'s post here, the POV hat uses two axes (he says axes 5 & 6). So you’re seeing the values for one of the axes but not the other. I haven’t tried myself, but I would suspect that the 45* would be a non-0 value on both axes.

–Ryan