|
|
|
| I will not function if you break my heart. |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have been dealing with code deploying. I deploy the code, consel says Build Successful, & drive station & Rio saying "No Robot Code".
I did everything: updating WPIlib plugin, updating WPIlib.h, Flashing Rio, checking connections, deploying from other computers. But none of that worked. But, when I put in a previous version of the robot code, it worked and deployed. The only diffrence between the two versions, is that I used the Timer function inside of WPIlib.h in auto and telop. help? PHP Code:
|
|
#2
|
||||
|
||||
|
Re: Deploy Successful, Rio said "No Robot Code"
https://github.com/search?utf8=%E2%9...RobotCode_2017
here is the link again. didn't work in PHP Code:
|
|
#3
|
||||
|
||||
|
Re: Deploy Successful, Rio said "No Robot Code"
Can't guarantee this, but typically successful deploys followed by "no robot code" usually means you're hitting a null pointer error. My best guess, looking at your code, would be to move:
Code:
double a_timenow = a_timer->Get(); double s_timenow = s_timer->Get(); double g_timenow = g_timer->Get(); |
|
#4
|
||||
|
||||
|
Re: Deploy Successful, Rio said "No Robot Code"
Indeed 'no robot code' is almost always an indicator that your program crashed on the roboRio. Finding crashes can be frustrating. Suggestions:
- Inspect the code for using a pointer which you have not yet done a 'new' on and so it is invalid or NULL. - Use printf() statements to see when you've reached certain parts of the code. This can be helpful but can also be troublesome as sometimes printf output doesn't reach the console over the network before the crash occurs. Beware. - The BEST answer is to use the debugger. It's daunting at first, but an EXCELLENT method. use "Debug As" instead of "Run As" - once in the debugger, you can 'go' to run the code and typically the debugger will HALT at the line where the crash occurred and you're all set. Woohoo! (Your mileage may vary) bob |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|