WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

getBeam

Returns the distance, in cm, for the specified light beam.
Syntax
Sharp5_wide. getBeam(beam)
Where Sharp5_wide is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'beam'
The individual LED number from 0 to 4.
Returns
DISTANCE_TYPE
Note
If the specified light beam is not valid then this will return 0.
The standard 'getDistance()' method will return the average distance across all beams.

 

 

Valid XHTML 1.0 Transitional