![]() |
RoboRIO red comm light, not accepting code?
Our PDP is giving us an orange light, and our roboRIO is giving us a red comm light. When we deploy code, eclipse reports it as deployed, but the roboRIO does not seem to get the new code. The ni web browser does NOT report a sticky fault.
Technical Details: RoboRIO is imaged Can ID's are correct No fuses appear to be blown Driver station can connect, but does not report any code |
Re: RoboRIO red comm light, not accepting code?
Is the roboRIO perhaps set to not run the user program on startup?
|
Re: RoboRIO red comm light, not accepting code?
Commenting out the auto code I had added fixed the red comm light. Does anyone mind reading through the code to see what might be causing the error?
Code:
void AutonomousInit() |
Re: RoboRIO red comm light, not accepting code?
I'd wager that either robot or gyro is an uninitialized pointer.
|
Re: RoboRIO red comm light, not accepting code?
Quote:
Code:
#include "WPILib.h" |
Re: RoboRIO red comm light, not accepting code?
The gyro constructor is commented out in the code you just posted, and your gyro appears to be on a channel that won't work. It needs to be on Channels 0 or 1.
|
Re: RoboRIO red comm light, not accepting code?
Quote:
|
Re: RoboRIO red comm light, not accepting code?
Quote:
See Gyro: http://first.wpi.edu/FRC/roborio/rel...classGyro.html And AnalogInput kAccumulatorChannels : http://first.wpi.edu/FRC/roborio/rel...alogInput.html |
Re: RoboRIO red comm light, not accepting code?
Try looking at the logs on the Dashboard. Usually they'll give you an error.
|
Re: RoboRIO red comm light, not accepting code?
Changing gyro port to 1 fixed it! Thanks. The only thing I can't figure out is how to have multiple auto modes without using the selectable chooser. It seems that only works with command based robot?
|
| All times are GMT -5. The time now is 20:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi