![]() |
Only ports 0 and 1 working on RoboRio
This is our current code:
Code:
package org.usfirst.frc.team4528.robot;Any Victor we put in port 0 or 1 will turn solid when enabled, but any other will not. The PWM cable is not the issue either. We replaced the battery in case it was low voltage. This code was working 5 days ago. Now it is not. We've re-imaged the RoboRio and uploaded the code again. Still same issue. We don't even call port 0 in our code but it runs the victor connected to port 1. |
Re: Only ports 0 and 1 working on RoboRio
Quote:
It is unfortunately easy to get the PWM connection not-quite-right on a Victor. Find someone with lots of practice and have him or her verify that the cables are correctly plugged in. And make doubly sure at both ends that the connectors are not plugged in backwards. |
Re: Only ports 0 and 1 working on RoboRio
Quote:
But the big thing is, our code doesn't initialize PWM port 0. But everything I just said for Port 1 is also true for port 0. So I'm at a complete loss. |
Re: Only port 1 working on RoboRio
An easy way to see if the PWM port is actually generating signals is to connect a servo to it. The servo will change angle when you change the applied "speed". At full forward or full reverse, servos may end up jamming against their stops and making a ticking sound. Don't do that for an extended time.
|
Re: Only ports 0 and 1 working on RoboRio
Quote:
|
Re: Only ports 0 and 1 working on RoboRio
Quote:
Don't change the name of the main class! |
Re: Only port 1 working on RoboRio
Thanks! We completely reinstalled Java and Eclipse on the Classmate and then implemented the changes mentioned and it seems to be working.
Thanks so much for the help! |
| All times are GMT -5. The time now is 19:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi