Go to Post We should have a 'Steps Taken For FIRST' contest. Everyone wear a pedometer and keep a log of how many miles you walked at the St. Louis Championship. That could be a lot of fun. Do they make pedometers for robot carts? - JaneYoung [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-11-2011, 19:56
ssirovica's Avatar
ssirovica ssirovica is offline
Programming Captain
AKA: Sasha Sirovica
FRC #1458 (Red Ties)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Alamo
Posts: 26
ssirovica is an unknown quantity at this point
WEre is WPILib and other header files

Hello everyone,

This is my first post on the forums as the new programming captain for my team. I hope you guys can help a newbie with some basic programming questions!

So basically my old team members left a bunch of junk on our programming computer, and I was cleaning it up when I noticed I couldn't find WPILib and some of our own custom header files.

Were are the header files in our code stored? Also, if I want to write a custom header file what folder do I put it in so I can use it in my main class?

In summary I am having some trouble with the basic file structure of Wind River as I come from the vary nice Visual Studio world.

Thanks,
Sasha Sirovica
Reply With Quote
  #2   Spotlight this post!  
Unread 07-11-2011, 20:21
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 52
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: WEre is WPILib and other header files

If WindRiver was installed in the default directory, it would be in "C:/WindRiver". The WPILib header files are in "C:\WindRiver\vxworks-6.3\target\h\WPIlib". If you want to make your own headers for a project, create them in your project's folder.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-11-2011, 20:30
ssirovica's Avatar
ssirovica ssirovica is offline
Programming Captain
AKA: Sasha Sirovica
FRC #1458 (Red Ties)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Alamo
Posts: 26
ssirovica is an unknown quantity at this point
Re: WEre is WPILib and other header files

Thanks for the replay,

I now understand, and have just one more question.

Do I also put .cpp files in the projects folder?
Reply With Quote
  #4   Spotlight this post!  
Unread 07-11-2011, 20:41
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 52
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: WEre is WPILib and other header files

Every source file you put in your project's folder, or header file that you #include from your source, will be built and linked into the final executable. If your .cpp file has code for running the robot, it should go in the project folder.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-11-2011, 08:35
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: WEre is WPILib and other header files

For starting your first robot project I recommend starting on page 18 of the attached guide. This will show you how to create, build and deploy one of the of the sample projects. Use the sample project as a guide for how to structure your own project.
Attached Files
File Type: pdf C_CPP_Programming_Guide.pdf (3.53 MB, 23 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2012, 11:50
scree0114 scree0114 is offline
Registered User
FRC #3642 (Huskies)
Team Role: Mechanical
 
Join Date: Jan 2012
Rookie Year: 2011
Location: jackson
Posts: 7
scree0114 is an unknown quantity at this point
Re: WEre is WPILib and other header files

I cant find a library for visual studio, where do u find them?
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2012, 12:06
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: WEre is WPILib and other header files

You don't use visual studio for this => finding the library would do you no good.

But since you're curious, http://firstforge.wpi.edu/sf/scm/do/...cts.wpilib/scm
__________________
Attending: MN Duluth Regional
Reply With Quote
  #8   Spotlight this post!  
Unread 28-01-2012, 12:15
scree0114 scree0114 is offline
Registered User
FRC #3642 (Huskies)
Team Role: Mechanical
 
Join Date: Jan 2012
Rookie Year: 2011
Location: jackson
Posts: 7
scree0114 is an unknown quantity at this point
Re: WEre is WPILib and other header files

Thank you we will use windriver
Reply With Quote
  #9   Spotlight this post!  
Unread 28-01-2012, 16:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: WEre is WPILib and other header files

Quote:
Originally Posted by theprgramerdude View Post
The WPILib SVN hasn't been updated this year. The latest code is installed as part of the Windriver update in C:\windriver\WPILib
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


All times are GMT -5. The time now is 17:47.

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