![]() |
Programming Victors in Java
The window motor on our robot is not working. Is the problem in our program??
if(operator.getRawButton(6)) { Pulley.set(-1.0); } else if(operator.getRawButton(3)) { Pulley.set(1.0); } else { Pulley.set(0); } if(operator.getRawButton(4)) { Scoop.set(-1.0); } else if(operator.getRawButton(5)) { Scoop.set(1.0); } else { Scoop.set(0); } if(operator.getRawButton(1)) { Window.set(-1.0); } else if(operator.getRawButton(2)) { Window.set(1.0); } else { Window.set(0); } Any help would be greatly appreciated! Thanks!! |
Re: Programming Victors in Java
Can you also post the declaration and initialization of the Victor object?
The things that you have posted seem to be alright, do the other motors work correctly? |
Re: Programming Victors in Java
Code:
if(operator.getRawButton(6)) {P.S. I didn't change anything in the code, just reorganized it a bit. |
Re: Programming Victors in Java
Yes, drive motors work (they are not listed in the program above) but none of the motors on victors work which are the ones in the program above.
What is the declaration and initialization of the Victor? |
Re: Programming Victors in Java
Quote:
|
Re: Programming Victors in Java
Quote:
Code:
Victor Window = new Victor(1); |
Re: Programming Victors in Java
1 Attachment(s)
Here is our whole code.
|
Re: Programming Victors in Java
The victors blink orange.
|
Re: Programming Victors in Java
Quote:
|
Re: Programming Victors in Java
Yes. We double checked that they were plugged in correctly, and we put on a brand new Digital Sidecar so no ports should be broken.
Any other ideas? |
Re: Programming Victors in Java
Quote:
|
Re: Programming Victors in Java
Quote:
|
Re: Programming Victors in Java
Quote:
Based on the Victor datasheet, the problem that you are describing is an improperly wired PWM cable or no PWM cable at all. Code:
Indication |
Re: Programming Victors in Java
Quote:
You can use an oscilloscope, or a simple digital voltmeter*, or you can plug the cable into a known-good Jaguar or Talon to test it. * ask if you want more detail how to do this |
Re: Programming Victors in Java
We think that we have verified the problem is in the code. Can somebody look at the code again and double check for errors?
Thanks! |
| All times are GMT -5. The time now is 22:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi