gusimplewhiteboard
|
WHITEBOARD_POSTER_STRING_CONVERSION. More...
#include <wb_sensors_head_sensors.h>
Public Attributes | |
bool | Head_Touch_Front |
state of the front capacitive sensor located on top of the head, on / off. More... | |
bool | Head_Touch_Middle |
state of the middle capacitive sensor located on top of the head, on / off. More... | |
bool | Head_Touch_Rear |
state of the back capacitive sensor located on top of the head, on / off. More... | |
WHITEBOARD_POSTER_STRING_CONVERSION.
Contains the current values of sensors located on top of the robot's head (designed for Nao H25 & H21 only)
Examples
Get the state of the Head_Touch_Front sensor
SensorsHeadSensors s = SensorsHeadSensors_t.get(); //get from the whiteboard bool button_state = s.Head_Touch_Frontt(); //pull the variable out of the class
Notes: Only the H25 and H21 models have capacitive sensors in the head, indicated by the blue leds on top of the head.
Definition at line 114 of file wb_sensors_head_sensors.h.
bool wb_sensors_head_sensors::Head_Touch_Front |
state of the front capacitive sensor located on top of the head, on / off.
could use a 1 bit var here
Definition at line 120 of file wb_sensors_head_sensors.h.
Referenced by guWhiteboard::SensorsHeadSensors::SensorsHeadSensors(), guWhiteboard::SensorsHeadSensors::Head_Touch_Front(), guWhiteboard::SensorsHeadSensors::operator=(), guWhiteboard::SensorsHeadSensors::set_Head_Touch_Front(), and wb_sensors_head_sensors_from_network_serialised().
bool wb_sensors_head_sensors::Head_Touch_Middle |
state of the middle capacitive sensor located on top of the head, on / off.
could use a 1 bit var here
Definition at line 125 of file wb_sensors_head_sensors.h.
Referenced by guWhiteboard::SensorsHeadSensors::SensorsHeadSensors(), guWhiteboard::SensorsHeadSensors::Head_Touch_Middle(), guWhiteboard::SensorsHeadSensors::operator=(), guWhiteboard::SensorsHeadSensors::set_Head_Touch_Middle(), and wb_sensors_head_sensors_from_network_serialised().
bool wb_sensors_head_sensors::Head_Touch_Rear |
state of the back capacitive sensor located on top of the head, on / off.
could use a 1 bit var here
Definition at line 130 of file wb_sensors_head_sensors.h.
Referenced by guWhiteboard::SensorsHeadSensors::SensorsHeadSensors(), guWhiteboard::SensorsHeadSensors::Head_Touch_Rear(), guWhiteboard::SensorsHeadSensors::operator=(), guWhiteboard::SensorsHeadSensors::set_Head_Touch_Rear(), and wb_sensors_head_sensors_from_network_serialised().