![]() |
RoboidControl for Arduino
|
A thing is a functional component on a robot. More...
#include <Thing.h>
Public Member Functions | |
| Thing () | |
| Default constructor for a Thing. | |
| 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 thing is a functional component on a robot.
|
strongprotected |
Basic Thing types.
| Enumerator | |
|---|---|
| Undetermined | |
| Switch | |
| DistanceSensor | |
| ControlledMotor | |
| UncontrolledMotor | |
| Thing::Thing | ( | ) |
Default constructor for a Thing.
| bool Thing::IsMotor | ( | ) |
| bool Thing::IsSensor | ( | ) |
| unsigned int Passer::RoboidControl::Thing::type |
The type of Thing.
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
Bitmask for Motor type.
|
staticprotected |
Bitmap for Sensor type.