Definition:
Return Value:
The raw reading from the SRF04 ranging module in 1.6us increments.
Description:
This routine takes readings from a properly configured Devantech SRF04 Sonar Ranging Module. and reports the time-of-flight for the reading. This function is ideal when a single ranger is being used with a BrainStem and code size is must be kept to a minimum. When multiple rangers are intended to be used with a BrainStem, it is recommended to use the aSRF05Mode1_ReadInt routine.
Example:
intVal = aSRF04_ReadInt();
This would take a reading and set intVal equal to the time required for the ping to be received in 1.6 uSec. increments. (This is round-trip echo return time.) The aSRF04_Setup routine must be called prior to calling this routine.
Related:
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.