|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||||
|
|||||
|
Re: editing robotDrive class help
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making a robotics class-please help | jpmittins | General Forum | 10 | 23-09-2009 22:04 |
| need help understanding c code in robotdrive | mahmosh | C/C++ | 14 | 16-01-2009 08:56 |
| Video editing help! | animatorkid | 3D Animation and Competition | 33 | 20-07-2006 05:28 |
| Awards Advice and Editing Help. | Amanda Morrison | Awards | 0 | 29-01-2006 16:00 |
| Please help a class in danger! | MattK | Chit-Chat | 0 | 12-12-2005 20:40 |