![]() |
CANNOT DEPLOY CODE
Hello - I am the head programmer from the LF robotics team. I am trying to deploy some code that did work about a week ago - I added in some motors and was attempting to deploy the code again - no errors came up - I went to the driver station and everything was green and good-to-go - I enabled teleop and nothing happened - IP's are good - subnet mask is correct for deploying and running code - firewall is disabled - netbeans team number is set - the image is good on the cRIO - I checked everything I could think of and the problem still occurs.
Does anyone happen to know what I could do to fix this issue? THANKS! |
Re: CANNOT DEPLOY CODE
Are there any messages on the Diagnostic tab of the Driver Station?
What is the Robot Signal Light doing? Describe its pattern of blinks. Does the Dashboard show you what the joysticks are doing? Does it show what is being commanded to the drive motors? Go back to the previous working program if possible, just to make sure it still works. That will help rule out a hardware problem and let you know to focus on your code changes. |
Re: CANNOT DEPLOY CODE
When the robot is first turned on(not connected to anything) it is a fast blink(200ms 200ms). When the driver station is initiated the blinking is correct for disabled, teleop, and autonoous.
When I try to deploy the old code it does the same thing. Here is the deployment stuff for the new code: Quote:
Quote:
It does not show anything for the joysticks or drive motors. I think it is the driver station. ALSO - the lights on both the Jaguar and VEX speed controllers are all weird. On both - nomatter what I do - one always shows that it is in FULL FORWARD and one always shows that it has been SUCCESSFULLY CALIBRATED. I have no idea if that means anything - thought I would just put it out there. THANKS! |
Re: CANNOT DEPLOY CODE
Hi LFRobotics,
The key here is the java.lang.NullPointerException that the program prints out in your new code. What the NullPointerException means is that you're using a variable that hasn't been initialized yet or if you're trying to get something that doesn't exist. In this case, a button seems to be the issue. Looking back through the stack trace of the error, it seems to occur at edu.wpi.first.LFRobot2014.OI.<init>(OI.java:64). I would look through your OI file and check line 64. That is the line where it runs into an error. You'll notice that the NullPointerException segment of the output doesn't occur in your "Old code" as well so something that was changed on that line isn't quite working properly. I can't speak directly to what the issue is since I've only used Joystick.getRawButton() rather than Button.whenPressed(), but I think it's likely that your Button hasn't been initialized properly. Ian |
Re: CANNOT DEPLOY CODE
I checked the code over and everything looks fine. What else could it be?
THANKS! |
Re: CANNOT DEPLOY CODE
Quote:
Quote:
Also, what does the stuff in the Diagnostics tab say? It often provides very useful debugging info |
Re: CANNOT DEPLOY CODE
Line 38 is a comment put in the code as default - underneath the comment is
Quote:
THANKS! |
Re: CANNOT DEPLOY CODE
Then keep going up the stack trace. See how the next item is in CommandBase.java line 30. Then after that, OI.java line 64 (I stand corrected, Ian above me got the right file first).
Quote:
|
Re: CANNOT DEPLOY CODE
Okay - so I looked through all of my code and could not find anything wrong with it. But I know that something is wrong with it sooo......
Could you perhaps look over it for me and maybe you might be able to see the error? Here is a link to it(I am currently using dropbox because I have not yet set Git up): https://www.dropbox.com/sh/iu4zl3b3lsagh66/yIxw3dubVt Here is a link to the most recent deploy output: https://www.dropbox.com/s/ricf3rarrw...ployOutput.txt THANKS SOOOOOO MUCH! |
Re: CANNOT DEPLOY CODE
From OI:
Code:
ForksDown = new JoystickButton(rightStick, 5); |
Re: CANNOT DEPLOY CODE
Okay - that fixed it - THANKS!
|
| All times are GMT -5. The time now is 19:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi