Quote:
Originally Posted by marccenter
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.