Here is a link to a post on made on the USFIRST forums, since the WPI guys tend to read that a little more frequently (
http://forums.usfirst.org/showthread...2148#post22148)
Quote:
Just curious -
What modifications do you want to make to those files? Are you sure you aren't better off putting your custom code in a different file?
It may be easier to create a child class and overwrite the functions you want to replace.
|
The modifications I am making are to support an as-yet unsupported drive type. I would love to explain more about the drive system, but our mechanical team wouldn't be too happy with me

.
I'm not really sure what you mean by creating a child class (I'm not exactly a pro with OOP yet, although I have several books I'm learning lots from), but I am interested. It sounds like you are suggesting that I somehow over-rule the function definitions in RobotDrive.cpp and RobotDrive.h. How would you suggest I implement that, if that's what you're talking about?
Thanks!
-Matt