Go to Post Saying that something cannot be done, is always good inspiration for someone to find a way to do it. - Josh Hambright [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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: 588
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
 


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 12:06.

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