View Single Post
  #9   Spotlight this post!  
Unread 29-12-2008, 21:59
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Re: Trouble modifying WPILib

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