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?