Go to Post That'll teach me to send anyone for a tool. - Rich Kressly [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 24-01-2013, 09:28
EyalD EyalD is offline
Registered User
FRC #1943
 
Join Date: Jan 2013
Location: Israel
Posts: 6
EyalD is an unknown quantity at this point
Problem While Debugging Code on the robot (Windriver)

Hello,
Yesterday we tried to run a commandbased code on our robot, we chose to debug the code and when it ran we clicked "Resume" as usual, but this time
not like any other time, we encountered an error -

After pushing "Yes" another window showed up:


We thought that if we'll close the current project and open another one the problem will disappear.
So, we did create another project and we copy-paste the files and ran the code, that problem happened again.

Just to make sure we tried to run a blank commandbased project and it worked perfectly.

Frustrated as we were, we decided to re-write the project part by part so we could find the source of the problem.

After doing this and waiting for the problem to appear, we found ourselves at the end of the project and the problem disappeared.

We are really curios about that and it'll be great if someone could help us find out what was the source of the problem so we could avoid it in the future.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2013, 15:23
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Problem While Debugging Code on the robot (Windriver)

Did you use RobotBuilder to generate your code? There is a bug in RobotBuilder-r619, the version in the 2013 WPILib C++ update, that causes newly added subsystems and components to not be initialized in Robot.cpp when regenerating code, as described in this thread. This bug has since been fixed in r620+; you can download a newer version from FIRST Forge. You also might want to take a look at this thread, as it discusses the same or a similar linking error.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2013, 17:33
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 591
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Problem While Debugging Code on the robot (Windriver)

That message means that there is an unresolved symbol in the CommandBase class. The weird name for the symbol: "_ZN11CommandBase6pickUpE" is because there can be many symbols that have the same name (for example overloaded methods) and the compiler generates "mangled" names. This allows them to be different from one another even though they have the same name.

In CommandBase you usually list static pointers to all your subsystems, then include the "CommandBase.h" file in each command. This makes it possible for the commands to call methods on the subsystems.

Perhaps you referred to a class in CommandBase called pickUp that wasn't defined there. If you use RobotBuilder, it automatically generates that file for you, but if you write the code by hand, you need to remember to add each subsystem to CommandBase. You can see more details if you look at the WPILib Cookbook which is located here:

http://firstforge.wpi.edu/sf/go/doc1297?nav=1

In any case, you seem to have it working now.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 03:32.

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