|
Re: WPILib source?
Quote:
Originally Posted by UriF
[+] On another note, I have this motor connected through a Jaguar.
I've been able to control this motor using the ArcadeDrive function and a Joystick.
I want to control this motor independently, so I decided to use the Jaguar class instead and use the Jaguar::Set() function and Joystick::GetY() to control it,
as in
Code:
Jaguar myJag(1);
Joystick myStick(1);
myJag.Set(myStick.GetY());
But it appears that it doesn't do anything, and I'm pretty sure I'm specifying the correct ports.
|
Simple troubleshooting because A) I don't have access to a robot to see if we are having the same issue and B) I'm pretty sure I ran into this last year, but I don't remember how or even if we fixed it.
Joystick Port is determined by the driver station. Make sure the joystick is setup to be in the port you specify. This is done on the setup tab of the driver station.
I believe you can write the value of the axis to a float and then use it on a later line, and see if that does anything.
__________________
Team Resume
562 "S.P.A.R.K." - Student Programmer 2008-2011, Field Coach 2011
3623 "Terror Bots" - Technical Mentor, Field Coach 2012 - Present
Volunteer Resume:
BattleCry@WPI 12, 13, 15, 16 - Queuing
BattleCry@WPI 14 - Field Reset
Granite State District Event 2014 - Team Queueing
NEFIRST District Championships '14,'15,'16 - Team Queuing
|