![]() |
Help program.
How do you program the POV on the Logitech joystick to move one motor using lab view?
|
Re: Help program.
On your joystick block, there should be an output for "POVs" which returns an array of integers. Index the first element of that array, and it'll give you the angle that the POV is being pressed. If nothing is being pressed, the value is -1.
Up is 0 Right is 90 Down is 180 Left is either -90 or 270; I don't remember |
Re: Help program.
How do you get to the joystick block?
|
Re: Help program.
1 Attachment(s)
It's one of the outputs available on the regular Joystick Get Values.
The same vi you use to get the axis and buttons in Teleop.vi. |
Re: Help program.
How do you program the POV to move a motor up and down? sorry we don't have much experience with lab view.
|
Re: Help program.
1 Attachment(s)
I don't have a joystick with a HAT in the shop I'm in right now, so I won't be able to test this until tomorrow at the earliest, but this is the idea.
|
Re: Help program.
What is the box at the bottom of the diagram labeled POV and how do you add it?
|
Re: Help program.
That's not actually necessary.
It is called an indicator and just gives us a display on the front panel of the live values of POV when you run the code in Debug. You get it by right-clicking on the wire or output node on the vi and choosing Create->Indicator |
Re: Help program.
How do you connect the POV to PWM 4?
|
Re: Help program.
Quote:
|
Re: Help program.
Quote:
|
Re: Help program.
1 Attachment(s)
Quote:
|
Re: Help program.
Sorry if i came off rude. The program still isn't working, is there anything we may not have done?
|
Re: Help program.
Quote:
|
Re: Help program.
Thank you for all your help. we just forgot to plug in the PWM.
|
| All times are GMT -5. The time now is 07:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi