#include <SynchronizedMotors.h>
◆ Direction
Motor turning direction.
| Enumerator |
|---|
| Clockwise | |
| CounterClockwise | |
◆ Type
Basic Thing types.
| Enumerator |
|---|
| Undetermined | |
| Switch | |
| DistanceSensor | |
| ControlledMotor | |
| UncontrolledMotor | |
| Servo | |
| ExternalSensor | |
◆ SynchronizedMotors()
| SynchronizedMotors::SynchronizedMotors |
( |
Motor * |
primaryMotor, |
|
|
Motor * |
secondaryMotor |
|
) |
| |
◆ SetTargetSpeed()
| void SynchronizedMotors::SetTargetSpeed |
( |
float |
speed | ) |
|
|
overridevirtual |
Set the target motor speed.
- Parameters
-
| speed | The speed between -1 (full backward), 0 (stop) and 1 (full forward) |
Reimplemented from Passer::RoboidControl::Motor.
◆ GetTargetSpeed()
| float Motor::GetTargetSpeed |
( |
| ) |
|
|
virtualinherited |
Get the current target speed of the motor.
- Returns
- The speed between -1 (full backward), 0 (stop) and 1 (full forward)
◆ GetActualSpeed()
| float Motor::GetActualSpeed |
( |
| ) |
|
|
virtualinherited |
◆ Update()
| void Motor::Update |
( |
float |
currentTimeMs | ) |
|
|
virtualinherited |
◆ IsMotor()
◆ IsSensor()
◆ SetParent()
| void Thing::SetParent |
( |
Thing * |
parent | ) |
|
|
inherited |
◆ GetParent()
| Thing * Thing::GetParent |
( |
| ) |
|
|
inherited |
◆ AddChild()
| void Thing::AddChild |
( |
Thing * |
child | ) |
|
|
inherited |
◆ GetChild()
| Thing * Thing::GetChild |
( |
unsigned char |
childIx | ) |
|
|
inherited |
◆ motorCount
| unsigned char Passer::RoboidControl::SynchronizedMotors::motorCount |
|
protected |
◆ motors
| Motor** Passer::RoboidControl::SynchronizedMotors::motors |
|
protected |
◆ direction
The forward turning direction of the motor.
◆ currentTargetSpeed
| float Passer::RoboidControl::Motor::currentTargetSpeed = 0 |
|
inherited |
◆ type
| unsigned int Passer::RoboidControl::Thing::type |
|
inherited |
◆ SwitchType
The type of a switch sensor.
◆ DistanceSensorType
| const unsigned int Thing::DistanceSensorType |
|
staticinherited |
Initial value:=
static const unsigned int SensorType
Bitmap for Sensor type.
Definition Thing.h:48
The type of a distance sensor.
◆ ControlledMotorType
| const unsigned int Thing::ControlledMotorType |
|
staticinherited |
Initial value:=
static const unsigned int MotorType
Bitmask for Motor type.
Definition Thing.h:46
The type of a controlled motor.
◆ UncontrolledMotorType
| const unsigned int Thing::UncontrolledMotorType |
|
staticinherited |
Initial value:
The type of an uncontrolled motor.
◆ ServoType
| const unsigned int Thing::ServoType = (unsigned int)Type::Servo |
|
staticinherited |
The type of an object received from the network.
◆ ExternalType
◆ position
| Polar Passer::RoboidControl::Thing::position |
|
inherited |
◆ MotorType
| const unsigned int Passer::RoboidControl::Thing::MotorType = 0x8000 |
|
staticprotectedinherited |
◆ SensorType
| const unsigned int Passer::RoboidControl::Thing::SensorType = 0x4000 |
|
staticprotectedinherited |
◆ parent
| Thing* Passer::RoboidControl::Thing::parent = nullptr |
|
protectedinherited |
◆ childCount
| unsigned char Passer::RoboidControl::Thing::childCount = 0 |
|
protectedinherited |
◆ children
| Thing** Passer::RoboidControl::Thing::children = nullptr |
|
protectedinherited |
The documentation for this class was generated from the following files: