View Single Post
  #16   Spotlight this post!  
Unread 10-02-2013, 15:29
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 186
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Warning: module holds reference to undefined symbol

One problem we faced a couple times this year was not providing an implementation of pure virtual functions in our subsystems and commands.

The two that come to mind are if your using a PIDSubsystem you have to implement.

virtual double ReturnPIDInput();
virtual void UsePIDOutput(double output);

In normal commands we implemented each command in it's own .h file.

We found our selves constantly leaving out implementations of empty methods.

ex.

~ArmUpCommand();
instead of
~ArmUpCommand() {}

and

Execute();
instead of
Execute() {}

The best way to narrow it down it down that we found is to comment all the subsystems and uncomment them one at a time until you can narrow it down to a particular subsystem or command.

If you'er still stumped then you can post that command or subsystem and the CD community can hopefully help you out.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

Reply With Quote