|
Re: So, honestly, who's still programming?
Quote:
Originally Posted by chinckley
Oh, please do one on how to program the other buttons on the Joystick. We have our robot moving forward and back and it turns, using 2 joysticks, but we cannot for the life of us get how to do a trigger (using the KOP joysticks). We want to do the following:
1. Right hand joystick trigger - make the globe motor move the chain forward.
2. Left hand joystick trigger - make the globe motor move the chain backwards. This only is used if something gets stuck.
3. Button that thumb rests on (right hand) make the keyang motor move the dumper forward.
4. Button that thumb rests on (left hand) make the keyang motor move the dumper back. This is only used if a ball gets stuck
I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS.
I really have no idea how to continue. I have watched all the TipJar videos, but not understanding the engineering part makes programming difficult. This is the first year the mechanical has been done before the code.
Please, can you help??? We go to Traverse City next Thursday (26th)
Thanks.
|
Please see the attached snippet. Basically this shows how to extract the button values, and also shows using the OpenG Boolean Trigger function (see my other reply below) Hope that helps!
Ben
|