Thread: If a. Run motor
View Single Post
  #1   Spotlight this post!  
Unread 25-01-2017, 18:17
Tank1357 Tank1357 is offline
Registered User
FRC #3640
 
Join Date: Jan 2017
Location: Tennessee
Posts: 2
Tank1357 is an unknown quantity at this point
If a. Run motor

Hello,

I am fairly new to FRC and I am supposed to be the programmer for my team. I am currently working on a program that will run a motor controlled by PWM for two seconds, if the button A on a Xbox controller is pressed. I have read articles and forums that explain bits and pieces on how to do it, but I am having problems putting those pieces together into a working program. I learn best by example, so if somebody could give me an example of the code for this program, it would be greatly appreciated.
Reply With Quote