| ![]() |
2.12 TouchSensortouch_sensor_enable, touch_sensor_disabletouch_sensor_get_value touch_sensor_enableNAMEtouch_sensor_enable, touch_sensor_disable -- enable and disable the touch sensor measurementsSYNOPSIS#include <device/touch_sensor.h>void touch_sensor_enable (DeviceTag sensor, guint16 ms); void touch_sensor_disable (DeviceTag sensor); DESCRIPTIONtouch_sensor_enable allows the user to enable a touch sensor measurement each ms milliseconds. touch_sensor_disable turns the touch sensor off, saving computation time. touch_sensor_get_valueNAMEtouch_sensor_get_value -- get the touch sensor measureSYNOPSIS#include <device/touch_sensor.h>guint16 touch_sensor_get_value (DeviceTag sensor); DESCRIPTIONtouch_sensor_get_value returns the last value measured by the specified touch sensor. This value is computed by the simulator according to the lookup table of the TouchSensor 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. |