Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   editing robotDrive class help (http://www.chiefdelphi.com/forums/showthread.php?t=78557)

mikelowry 07-10-2009 08:59

editing robotDrive class help
 
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

Re: editing robotDrive class help
 
There is a link to download the WPILib source code on this page. 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

Re: editing robotDrive class help
 
Quote:

Originally Posted by mikelowry (Post 877198)
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.


All times are GMT -5. The time now is 13:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi