![]() |
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. |
Re: If a. Run motor
I would watch these videos about RobotBuilder. Pay close attention to the Claw subsystem.
https://www.youtube.com/watch?v=k7Pa...ObeKzp&index=1 |
Re: If a. Run motor
Coming from a person who has scoured screen steps for the exact same thing...
(These are just examples) Code:
//First declare the joystick somewhere as a pointerCode:
//Make a bool and assign it to the controllers button in TelopCode:
//Pretend 1 is A for nowCode:
//The bool goes into the robot init |
Re: If a. Run motor
Quote:
|
Re: If a. Run motor
Thank you so much, this was very helpful.:D
|
| All times are GMT -5. The time now is 21:58. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi