View Single Post
  #3   Spotlight this post!  
Unread 03-29-2016, 08:34 PM
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Button assignment for specific motors

If you want the arm to move full speed in the positive direction when A on your XBOX controller:

Code:
if(A.get()) {
    arm.set(1);
}
Note that in frc you send motors a value between -1 and 1, with -1 being full reverse, 0 being stopped, and 1 being full forward.
Reply With Quote