View Single Post
  #1   Spotlight this post!  
Unread 23-01-2011, 16:25
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Button programin C++

so my team is using mecanum wheels this year. we would like to make it so when you hit the trigger on the left joystick it reduces the maximum speed of the motor by half. so im my code i have this

Code:
 bool GetTrigger (Joystick hand = leftstick);
if im right that checks if the trigger on the left joystick it pushed or not.
i was trying to create an if statement to change the speed of the motors but its not working.

any suggestions?
Reply With Quote