|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
LabVIEW POV Help?
Hello ladies and gentlemen
, our team wants to control a servo with the hat switch on top of the Logitech Extreme 3D Pro, but we've but attempting to program the hat switch for a week, we can use the servo with buttons, but we are stuck at trying to use the POVs for the hatswitch. any help or idea would be helpful. |
|
#2
|
||||
|
||||
|
Re: LabVIEW POV Help?
POVs in LabVIEW have recently been made much simpler. The same way you would get the axes and buttons on a joystick, there should be a third output array on the Joystick Get vi for POVs. The POV you want will be the first (and only) element in the array. If you index the first element of that array, you will end up with a single integer value. IIRC that integer corresponds to the angle that the POV hat is at, with forward being 0* and CW+. Then you can either send that angle value directly to the servo if you have a 360* servo or use some kind of function to map POV inputs to servo angle outputs. Good luck!
|
|
#3
|
||||
|
||||
|
Re: LabVIEW POV Help?
Quote:
|
|
#4
|
||||
|
||||
|
Re: LabVIEW POV Help?
My LabVIEW expired and I'm too lazy to put in the new activation code. Attached is a bad MS Paint drawing of what I think it looks like from memory.
|
|
#5
|
||||
|
||||
|
Re: LabVIEW POV Help?
Here, this diagram should be very helpful.
|
|
#6
|
||||
|
||||
|
Re: LabVIEW POV Help?
Ok, I've tried this out with no luck, is there something I'm likely missing? I don't know how to copy my code into Chief Delphi to show you.
|
|
#7
|
||||
|
||||
|
Re: LabVIEW POV Help?
You can either select the code you want and in one of the menus there's an option like "Make PNG from selection" or you can just take a screen grab with any screen grabbing program.
|
|
#8
|
||||
|
||||
|
Re: LabVIEW POV Help?
Ok, we figured out my problem and got the code to work, although it goes back to the starting position when we let go of the hat switch, any ideas on how to make it stay in the same spot? thanks
|
|
#9
|
|||
|
|||
|
Re: LabVIEW POV Help?
Quote:
Presumably you set some value to the servo when the hat switch is depressed. i would look in the code for any other place where that servo is set and see how your code can reach that location (presumably by way of teleop.vi) |
|
#10
|
|||||
|
|||||
|
Re: LabVIEW POV Help?
Quote:
Just how you do that depends on what your code looks like. |
|
#11
|
||||
|
||||
|
Re: LabVIEW POV Help?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|