View Single Post
  #11   Spotlight this post!  
Unread 12-02-2008, 14:07
GregK GregK is offline
Registered User
FRC #0381
 
Join Date: Feb 2008
Location: Princeton, NJ
Posts: 1
GregK is an unknown quantity at this point
Re: SONAR Sensor Software Driver

Last nite, I set to work adding a second sonar. Because of the limited time, I just made a second copy of Mike's sonar.c and sonar.h (which we are using for the first sonar). I named the second copy sonar2.c & h and changed the global variable names. While checking around to find what else I should change (which interupts and pins I should use), I found out that Mike has written another sonar named jvex_sonar.c routine that handles four sonars (at http://www.koders.com/c/fid735E99BB5...A82C4454.aspx).

What the story with that routine? Would I be better off starting with that code or continue with my approach?