![]() |
RoboidControl for Arduino
|
A sensor is a thing which can perform measurements in the environment. More...
#include <Sensor.h>
Public Member Functions | |
| Sensor () | |
| Default Constructor for a Sensor. | |
| bool | IsMotor () |
| Check if the Thing is a Motor. | |
| bool | IsSensor () |
| Check if the Thing is a Sensor. | |
Public Attributes | |
| unsigned int | type |
| The type of Thing. | |
Static Public Attributes | |
| static const unsigned int | SwitchType = SensorType | (unsigned int)Type::Switch |
| static const unsigned int | DistanceSensorType |
| static const unsigned int | ControlledMotorType |
| static const unsigned int | UncontrolledMotorType |
Protected Types | |
| enum class | Type { Undetermined , Switch , DistanceSensor , ControlledMotor , UncontrolledMotor } |
| Basic Thing types. More... | |
Static Protected Attributes | |
| static const unsigned int | MotorType = 0x8000 |
| Bitmask for Motor type. | |
| static const unsigned int | SensorType = 0x4000 |
| Bitmap for Sensor type. | |
A sensor is a thing which can perform measurements in the environment.
|
strongprotectedinherited |
Basic Thing types.
| Enumerator | |
|---|---|
| Undetermined | |
| Switch | |
| DistanceSensor | |
| ControlledMotor | |
| UncontrolledMotor | |
| Sensor::Sensor | ( | ) |
Default Constructor for a Sensor.
|
inherited |
|
inherited |
|
inherited |
The type of Thing.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticprotectedinherited |
Bitmask for Motor type.
|
staticprotectedinherited |
Bitmap for Sensor type.