|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Held
We have been trying to develop a mecanum drive robot. So far, the robot rejects the code or takes it in and ignore it. According to our driver station, we have no code but have communications. I've attached our current code that we have built and downloaded to the robot. We are open to all kinds of helpful comments.
Thanks, Daniel, team 2992 programmer |
|
#2
|
|||
|
|||
|
Re: Held
Quote:
It sounds like the code is crashing. I see you have print statements in your code. Are you running the NetConsole? What do you see in the console? |
|
#3
|
|||
|
|||
|
Re: Held
We are not using the NetConsole. All we receive in response is that the robot has no code on it. However, we can download and retrieve code that we send to it. Yet, it builds fine on Windriver.
|
|
#4
|
|||
|
|||
|
Re: Held
From your description it sounds like you can build the code and deploy it. It sounds like the code is running into some sort of run-time exception (probably a memory fault) and exiting which is why it says "no robot code".
The easiest way to figure out your problem is going to be to enable the NetConsole. You will be able to watch the OS boot up and you will see something printed to the console if your code is indeed crashing. To solve the crash you probably want to comment out everything and get to a point where the code runs. Then starting adding things back one at a time until you find the issue. Also add a bunch of print statements so you can trace the execution of the code. Good luck! |
|
#5
|
|||
|
|||
|
Re: Held
Thanks for the help! I will try to get the NetConsole up and running for the robot. I will post later if I need some more help with it.
|
|
#6
|
|||
|
|||
|
Re: Held
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Held
Use the cRIO imaging tool to enable NetConsole. Then re-deploy your code and open NetConsole (Start->Programs->NetConsole for cRIO).
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|