View Single Post
  #10   Spotlight this post!  
Unread 04-02-2013, 20:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Toggle Motor Using Button

Read the Attack 3 joystick's throttle button as "axis 3 (throttle)". It'll give a value between +1 (full back/down) and -1 (full forward/up).

If you want to turn that into a value between 0 and 1, just subtract one and divide by negative two.

Is that enough information? I'm not sure if you're asking how to read the throttle control, or how to set the speed of a motor, or something else.
Reply With Quote