Log in

View Full Version : editing robotDrive class help


mikelowry
07-10-2009, 08:59
I want to build in the use of fans into the provided robotDrive class. I know how to do it, but i cant find the file to edit. On the side of windriver, i looked through the include folder and found the .h file so i can edit it, but i cant find the .cpp to edit it as well. Where can i find the robotDrive.cpp file to edit?

MattD
07-10-2009, 12:07
There is a link to download the WPILib source code on this page (http://first.wpi.edu/FRC/frcupdates.html). Add RobotDrive.cpp and RobotDrive.h to your project and make your changes there. Your version will be included in the build instead of the default one.

Alan Anderson
07-10-2009, 13:25
I want to build in the use of fans into the provided robotDrive class. I know how to do it, but i cant find the file to edit.

Don't edit a provided class. Make your own robotDriveWithFan class that inherits from it and use that instead. As long as you're just adding functionality and not removing any, it's very easy.