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

setInWater

Tell the sensor whether it is underwater or not. Given that is an acoustic sensor then this is necessary as sound travels at different speed through air and through water.
Syntax
Mb7077. setInWater(inWater)
Where Mb7077 is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'inWater'
Set to TRUE if the sensor is underwater or FALSE if not.
You could use another sensor to detect if you are under water.
Returns
None

 

 

Valid XHTML 1.0 Transitional