Go to Post If you don't have a hairtie, use a ziptie instead. It works, it's cute, and way geeky. :p - Katie Reynolds [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-22-2011, 01:47 PM
2992_daniel 2992_daniel is offline
Registered User
FRC #2992
 
Join Date: Nov 2011
Location: Mandeville
Posts: 4
2992_daniel is an unknown quantity at this point
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
Attached Files
File Type: cpp BuiltinDefaultCode2.cpp (16.6 KB, 17 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 11-22-2011, 05:25 PM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Held

Quote:
Originally Posted by 2992_daniel View Post
According to our driver station, we have no code but have communications.

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?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-23-2011, 10:36 AM
2992_daniel 2992_daniel is offline
Registered User
FRC #2992
 
Join Date: Nov 2011
Location: Mandeville
Posts: 4
2992_daniel is an unknown quantity at this point
Re: Held

Quote:
Originally Posted by jwakeman View Post
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?
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-23-2011, 03:58 PM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
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!
Reply With Quote
  #5   Spotlight this post!  
Unread 11-24-2011, 10:52 AM
2992_daniel 2992_daniel is offline
Registered User
FRC #2992
 
Join Date: Nov 2011
Location: Mandeville
Posts: 4
2992_daniel is an unknown quantity at this point
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-30-2011, 04:57 PM
2992_daniel 2992_daniel is offline
Registered User
FRC #2992
 
Join Date: Nov 2011
Location: Mandeville
Posts: 4
2992_daniel is an unknown quantity at this point
Re: Held

Quote:
Originally Posted by jwakeman View Post
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!
We are having trouble with the same issue. We also need help setting up the NetConsole, could you point us in the right direction?
Reply With Quote
  #7   Spotlight this post!  
Unread 11-30-2011, 05:34 PM
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Held

Quote:
Originally Posted by 2992_daniel View Post
We are having trouble with the same issue. We also need help setting up the NetConsole, could you point us in the right direction?
Use the cRIO imaging tool to enable NetConsole. Then re-deploy your code and open NetConsole (Start->Programs->NetConsole for cRIO).
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:29 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi