![]() |
Code does not work, and there seems to be 0 issues.
I've written code for our robot, but it is not working. There are 0 errors in Eclipse, and 0 errors in the driver station. I'm not sure if it's an issue with the code or with our electric wiring. Here is the code, please let me know if there's anything wrong.
Code:
package org.usfirst.frc.team6077.robot; |
Re: Code does not work, and there seems to be 0 issues.
Which part? Also, why do you have a Robot constructor? You don't need that
|
Re: Code does not work, and there seems to be 0 issues.
Nothing works, and what do you mean?
|
Re: Code does not work, and there seems to be 0 issues.
Quote:
|
Re: Code does not work, and there seems to be 0 issues.
When you say "nothing works", what exactly do you mean? What is happening when you enable?
|
Re: Code does not work, and there seems to be 0 issues.
The drive motors do not turn, the arm motor does not turn, the slide motor does not turn. The compressor works though.
|
Re: Code does not work, and there seems to be 0 issues.
Maybe your joystick isn't working?
Have you had the code working before? If so, what changes have been made? |
Re: Code does not work, and there seems to be 0 issues.
If there are 0 errors, be sure that you have the rioLog open in eclipse (open from the view menu). Also, assuming that you do not have any errors, have you used this roboRio successfully before now? Have you performed any recent updates? Have you installed Java on the rio?
|
Re: Code does not work, and there seems to be 0 issues.
Yes, it has worked successfully. No I have not updated anything. No, there are 0 Rio log errors. Yes Ive installed java on it.
|
Re: Code does not work, and there seems to be 0 issues.
Try adding some diagnostic tools to your code.
For example at the end of your constructor, try adding the following two lines: Code:
LiveWindow.addActuator("Drive", "Left Motor", drivemotor1);You can also add "debug output" that appears during normal operation. Try adding the following field (lastDashboardUpdate) and method to your Robot class: Code:
// time stamp of last time we sent values to dash board Deploy the code and start the driver station in Teleop mode. You should see values update on your smart dashboard corresponding to the inputs on your game pad and the output power of your drive motors. If you see zero values on your joysticks even when you are moving them, check the driver station console and make certain that your gamepad has not been re-mapped to a different port. After you get things working on the drive, you can comment out the debug output in the updateDashboard() method and use this approach to troubleshoot the rest of your components. |
Re: Code does not work, and there seems to be 0 issues.
Quote:
Second, your location says Posen. Is that as in Posen, MI? That would be pretty cool because I'm from that general area. Anyway, sorry to sidetrack the coversation. |
Re: Code does not work, and there seems to be 0 issues.
Posen, MI. :)
|
| All times are GMT -5. The time now is 04:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi