Thread: Trigger buttons
View Single Post
  #4   Spotlight this post!  
Unread 16-02-2009, 10:46
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Trigger buttons

Quote:
Originally Posted by Alan Anderson View Post
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.

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.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State