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?
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.
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.