| ![]() |
2.7 LightSensorlight_sensor_enable, light_sensor_disablelight_sensor_get_value light_sensor_enableNAMElight_sensor_enable, light_sensor_disable -- enable and disable the light sensor measurementsSYNOPSIS#include <device/light_sensor.h>void light_sensor_enable (DeviceTag sensor, guint16 ms); void light_sensor_disable (DeviceTag sensor); DESCRIPTIONlight_sensor_enable allows the user to enable a light sensor measurement each ms milliseconds. light_sensor_disable turns the light sensor off, saving computation time. light_sensor_get_valueNAMElight_sensor_get_value -- get the light sensor measureSYNOPSIS#include <device/light_sensor.h>guint16 light_sensor_get_value (DeviceTag sensor); DESCRIPTIONlight_sensor_get_value returns the last value measured by the specified light sensor. This value is computed by the simulator according to the lookup table of the LightSensor 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. |