Go to Post Shouldn't we be encouraging exploration instead of repeatedly beating it with a stick? - Mike Soukup [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 08-02-2009, 21:00
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Smile Location of WPI Library cpp files attached to Windriver

Hey folks,
I did a windows search for some of the WPI library files and did not find them on my local hard drive. Where are the WPI library files hidden relative to WIndriver? I see the *.h files but not the *.cpp files.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2009, 23:42
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Location of WPI Library cpp files attached to Windriver

They do not come with it, they are pre-compiled. You can download the WPILib files off of the WPI site if you would like though.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2009, 07:57
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 469
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Location of WPI Library cpp files attached to Windriver

Quote:
Originally Posted by marccenter View Post
Hey folks,
I did a windows search for some of the WPI library files and did not find them on my local hard drive. Where are the WPI library files hidden relative to WIndriver? I see the *.h files but not the *.cpp files.
The source code is not included with the default installation package. However, they can be downloaded separately from the same place that the updated installation packages can be found:

http://first.wpi.edu/FRC/frcupdates.html

The direct link to the Update 3.0 source code is http://first.wpi.edu/Images/CMS/Firs...SourceCode.zip
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2009, 12:20
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Question Re: Location of WPI Library cpp files attached to Windriver

Hey guy's thanks for info.

Part 2 now: I wanted to create my own version of TankDrive so I could have a rate-limited (RL) input for acceleration control (TankDriveRL) by comparing last loop value to present loop value. I began modifying TankDrive by copying/pasting to TankDriveRL within Robotdrive.h but couldn't really finish because I did have access to Robotdrive.cpp source code. What do you recommend to proceed? (I am new to C++ and Windriver development environments)

1) Figure out a way to modfy Robotdrive.cpp? (seems not possible)

2) Create new files(*.h, *.cpp) for TankDriveRL and make up new TankDriveRL class/method?. (most likely candidate).
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 09-02-2009 at 12:22. Reason: Screen editing
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2009, 14:21
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: Location of WPI Library cpp files attached to Windriver

Quote:
Originally Posted by marccenter View Post
I wanted to create my own version of TankDrive... I began modifying TankDrive by copying/pasting to TankDriveRL...

2) Create new files(*.h, *.cpp) for TankDriveRL and make up new TankDriveRL class/method?. (most likely candidate).
Don't copy and paste. Inherit. Make a new class based on the old one, and replace the relevant methods to incorporate your rate limiting.

I'm not the right person to give detailed directions on exactly how to do that. Someone else with more C++ expertise than I do will have to help you further.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2009, 12:47
j_johnson j_johnson is offline
Registered User
FRC #0226 (Hammerheads)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Shelby Township, MI
Posts: 10
j_johnson is an unknown quantity at this point
Re: Location of WPI Library cpp files attached to Windriver

Another good option for operations like this is to use a pipeline pattern. Our team created a class that inherits from SpeedController and takes another SpeedController as it's output. Inside this class's Set method, it procceses the input and passes the result to the output. This pattern allows you to create classes to perform operations such as rate limiting, traction control, velocity control, etc. to each act individually. You can then chain them together through the constructors as below.

Code:
float accelLimit = .03;
SpeedController leftDriveMotor = new Jaguar(1);
SpeedController leftAccelLimiter = new AccelerationLimiter (leftDriveMotor, accelLimit);
SpeedController leftTractionControl = new TractionControl(leftAccelLimiter);
SpeedController rightDriveMotor = new Jaguar(2);
SpeedController rightAccelLimiter = new AccelerationLimiter (rightDriveMotor, accelLimit);
SpeedController rightTractionControl = new TractionControl(rightAccelLimiter);
m_robotDrive = new RobotDrive(leftTractionControl, rightTractionControl);
This makes it very easy to test each piece individually and then chain them together.
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
Possible confusion between competition location and shipping location rl1806 General Forum 2 07-02-2009 00:27
Need Help Locating .h and .cpp files jkjohnson Programming 0 30-01-2009 09:00
downloading the WPI library off the SVN nickmagus Programming 13 05-01-2009 14:29
cRIO-FRC Training Video: WPI Library Overview BLAQmx National Instruments LabVIEW and Data Acquisition 5 09-11-2008 19:58
Where is WPI Library Information PDF? koenig3456 Programming 2 15-01-2006 16:19


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

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