Go to Post Once I see that it is black with aluminum ends, I only care about the inside. Sort of like Oreo's. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-10-2009, 08:59
mikelowry mikelowry is offline
Registered User
FRC #1771 (N.G.R.)
Team Role: Engineer
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Suwanee GA
Posts: 63
mikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to all
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?
__________________


2008 Xerox Creativity Award - Championships
2009 Rockwell Automation Innovation in Control award - Peachtree
2009 GM Industrial Design Award - Palmetto
2009 Palmetto Champions <1771 2415 21>
Reply With Quote
  #2   Spotlight this post!  
Unread 07-10-2009, 12:07
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
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.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #3   Spotlight this post!  
Unread 07-10-2009, 13:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: editing robotDrive class help

Quote:
Originally Posted by mikelowry View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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