View Single Post
  #4   Spotlight this post!  
Unread 08-01-2012, 21:33
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Linux based development

Quote:
Originally Posted by shuhao View Post
Are we allowed to actually modify the WPILib code?
You are free to modify the code, but be careful, because if updates come out you'll loose your changes (or have to reapply them).

Better is to make additional classes or subclass the pieces in the library to add features. For example, if you want to make your own implementation of a Jaguar, the make a class the extends (subclasses) the built-in class. Then you can override the built-in methods or add your own.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote