View Single Post
  #3   Spotlight this post!  
Unread 09-04-2014, 12:48
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Create your own library, like WPILib?

I'd imagine it would be fairly simple to implement. Excellent idea by the way! We may try and accomplish the same thing.

Just copy the format of the WPILib. You would probably have to import all the files into every project you start, easiest way to do that I'd imagine would just have a folder titled MRTLib, and inside a file MRTLib.h, MRTLib.cpp, and all the other things you'd want to create. Just follow the format of the WPILib they did pretty well on it!

EDIT: on second thought, you could just add the classes you want into the WPILib! put the files in the WPILib location and add the include into the main WPILib.h file. would make your life a whole lot easier, although you'd have to re-import the classes every year.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote