|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Point of View from Controller
Does anyone know how to pull the point of view function off of an xbox controller into labview? I tried using axes 6 and 7, but those did not work for me.
|
|
#2
|
|||||
|
|||||
|
Re: Point of View from Controller
Check this thread.
|
|
#3
|
|||
|
|||
|
Re: Point of View from Controller
"Joystick get" outputs three arrays. Axes (doubles), buttons (booleans), and hat switches (ints). Your POV hat is the the first value in the hat switch array. It has a value of -1 if nothing is pressed. Otherwise, it will return the angle in 45 degree increments. So up is 0, up/right is 45, right is 90, down/right is 135, down is 180, down/left is 225, left is 270, and left/up is 315.
Personally, I am using the pov hat to control our camera gimbal. The case shown, 180, is when the dpad is pressed down. In that case, I tilt the camera down by a degree. The max is there to keep it from trying to decrease the angle below 1, which causes the servo to freak out and start skipping backwards. ![]() Last edited by RobotMonkey : 17-02-2015 at 17:19. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|