|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Okay, so i am nearing completion of my code but I need to make a motor spin when i press a button on the joystick and I'm not sure how. If anyone can help please post a response.
|
|
#2
|
||||
|
||||
|
Re: Need help on program please
Could you give us some more information? What language are you programming in? What motor controllers are you using? Can you post any portion of your code that you are having issues with?
|
|
#3
|
|||||
|
|||||
|
Re: Need help on program please
What language are you using?
In LV, you could do something like this: |
|
#4
|
|||
|
|||
|
Re: Need help on program please
Im using labview, and i need it to run from a joystick button.
|
|
#5
|
|||
|
|||
|
Re: Need help on program please
Thank you for your help, it works now.
|
|
#6
|
|||||
|
|||||
|
Re: Need help on program please
No problem!
There are a lot of ways to do it (that is only one, but it's probably the easiest), but however you do it, you can only have one Set Motor for each motor in teleop, otherwise they will 'fight' with each other. |
|
#7
|
|||
|
|||
|
Re: Need help on program please
how would i run 2 seprate motors?
|
|
#8
|
|||||
|
|||||
|
Re: Need help on program please
You would write separate code for each motor.
If you have more than one 'Set Motor' for a single motor, then the value will be set to both values, and one of them will 'win'. Which one exactly is random. You can still have multiple 'Set Motor' calls in Teleop, as long as there is only one per motor. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|