![]() |
Trigger buttons
We are trying to take what we learned from Ben Zimmers video to create programming for the triggers of the joysticks that came in the KOPs to make one move a chain forward and one make it move a chain in reverse for ball manipulation (not driving the robot).
We are also trying to make one button on each joystick move our dumper forward and the identical button on the other joystick move our dumper backwards, but we cannot seem to get from what Ben showed/taught us to this. Anyone have a bit of time to help us? Thanks. |
Re: Trigger buttons
Is anyone using a system like this?
We are really struggling. Thanks. |
Re: Trigger buttons
Do you know how to read a joystick button? Make a simple bit of code to do that for each button you want.
Do you know how to set motor speed? Use an if statement to use the value of the joystick buttons to decide what speed to run the motor at. If you're having problems with the code, show us what you're doing and we can help you find what should be changed. |
Re: Trigger buttons
Have you looked at this?
|
Re: Trigger buttons
Quote:
We do not know how to read a button. I have seen something called Get. We just got our basic driving code to stay on the cRio at startup. We use both joysticks that came in the KOPS. The basic driving code works. We can go forward, back and turn nicely. I will see if I can find how to read a button. I have done lessons #5 - #10 of Ben Zimmers videos and went to the classes this Fall in NOVI, MI for Labview. |
Re: Trigger buttons
Quote:
Now you can use that boolean to choose what value to send to the motor. Do you know how to do that? |
Re: Trigger buttons
Quote:
|
| All times are GMT -5. The time now is 01:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi