View Single Post
  #4   Spotlight this post!  
Unread 12-02-2008, 18:21
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: two drive styles

While this can be done, the reason I used preprocessor directives instead was that when done with preprocessor directives, no unneeded code is compiled. Of course, if you do want to switch layouts during run or automatically detect a layout during run, the above method would work great.
__________________