View Single Post
  #42   Spotlight this post!  
Unread 08-11-2007, 11:32
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: SONAR Sensor Software Driver

People have been PM'ing me about my single-pin ultrasonic driver for the Parallax PING))) ultrasonic sensor module.

I've cut out most of the signal processing, noise filtering, and object tracking code that I wrote, but there is enough here to get you your pulse-timing (raw distances). If you have questions post, please don't PM since many end up asking the same questions.

I realize it isn't the prettiest code, but then again I was never intending on posting it when it was written...

Enjoy... I attached the related files below. *cringes waiting for flood of 'this is bad programming convention' posts*

-q
Attached Files
File Type: c EDITEDusdriver.c (4.5 KB, 260 views)
File Type: h EDITEDusdriver.h (1.2 KB, 204 views)
File Type: c user_routines_fast.c (9.6 KB, 240 views)
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08