View Single Post
  #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