| ![]() |
2.4 DistanceSensordistance_sensor_enable, distance_sensor_disabledistance_sensor_get_value distance_sensor_enableNAMEdistance_sensor_enable, distance_sensor_disable -- enable and disable the distance sensor measurementsSYNOPSIS#include <device/distance_sensor.h>void distance_sensor_enable (DeviceTag sensor, guint16 ms); void distance_sensor_disable (DeviceTag sensor); DESCRIPTIONdistance_sensor_enable allows the user to enable a distance sensor measurement each ms milliseconds. distance_sensor_disable turns the distance sensor off, saving computation time. distance_sensor_get_valueNAMEdistance_sensor_get_value -- get the distance sensor measureSYNOPSIS#include <device/distance_sensor.h>guint16 distance_sensor_get_value (DeviceTag sensor); DESCRIPTIONdistance_sensor_get_value returns the last value measured by the specified distance sensor. This value is computed by the simulator according to the lookup table of the DistanceSensor node. Hence, the value range for the return value is defined by this lookup table. ![]() ![]() ![]() ^ page top ^ |
E-mail to webmaster | Last updated: | Copyright © 2002 Cyberbotics Ltd. |