View Single Post
  #5   Spotlight this post!  
Unread 09-02-2009, 14:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Location of WPI Library cpp files attached to Windriver

Quote:
Originally Posted by marccenter View Post
I wanted to create my own version of TankDrive... I began modifying TankDrive by copying/pasting to TankDriveRL...

2) Create new files(*.h, *.cpp) for TankDriveRL and make up new TankDriveRL class/method?. (most likely candidate).
Don't copy and paste. Inherit. Make a new class based on the old one, and replace the relevant methods to incorporate your rate limiting.

I'm not the right person to give detailed directions on exactly how to do that. Someone else with more C++ expertise than I do will have to help you further.
Reply With Quote