![]() |
Programming Shooter C++
I'm programming in c++ and i cant get the shooter to work. All i want it to do is when i press a button on the joystick, it runs the motor and if im not touching the button the motor doesnt run. How do i do this?:confused: :confused: :confused:
|
Re: Programming Shooter C++
I have no idea what your setup is, but it would look something like this:
Code:
while (IsOperatorControl()) |
Re: Programming Shooter C++
The button is 2, and the motor is Shooter. Im still having problems
|
Re: Programming Shooter C++
Can you post your current code?
|
Re: Programming Shooter C++
Without your current code its hard to tell what the issue is, but I would make sure that you have it in the constructor correctly. I'm going guess that its a Jaguar, but it could easily be a Victor as well.
Code:
#include "WPILib.h" |
| All times are GMT -5. The time now is 06:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi