A motor with speed control It uses a feedback loop from an encoder to regulate the speed The speed is measured in revolutions per second.
Inherits RoboidControl.Motor.
|
| ControlledMotor (Thing parent, RelativeEncoder encoder) |
|
| ControlledMotor (Motor motor, RelativeEncoder encoder) |
|
override void | Update (bool recurse=false) |
| Update de state of the thing.
|
|
override byte[] | GenerateBinary () |
|
override void | ProcessBinary (byte[] data) |
|
virtual void | CreateComponent () |
| Function which can be used to create components in external engines.
|
|
void | AddChild (Thing child) |
| Add a child Thing to this Thing.
|
|
bool | RemoveChild (Thing child) |
| Remove the given thing as a child of this thing.
|
|
void | ReplacePosition (Spherical newPosition) |
|
void | ReplaceOrientation (SwingTwist newOrientation) |
|
|
Direction | direction = Direction.Clockwise |
| The forward turning direction of the motor.
|
|
bool | terminate = false |
| Terminated things are no longer updated.
|
|
byte | id = 0 |
| The ID of this thing.
|
|
byte | type = Type.Undetermined |
| The type of this thing.
|
|
bool | isRemote = false |
|
Participant | owner = null |
| The participant owning this thing.
|
|
bool | nameChanged = false |
|
Unity.Thing | component = null |
| A reference to the representation of the thing in Unity.
|
|
bool | hierarchyChanged = true |
| Indicator that the hierarchy of the thing has changed.
|
|
bool | positionUpdated = false |
| Boolean indicating that the thing has an updated position.
|
|
bool | orientationUpdated = false |
| Boolean indicating the thing has an updated orientation.
|
|
bool | linearVelocityUpdated = false |
| Boolean indicating the thing has an updated linear velocity.
|
|
bool | angularVelocityUpdated = false |
| Boolean indicating the thing has an updated angular velocity.
|
|
ConcurrentQueue< CoreEvent > | updateQueue = new() |
| Queue containing events happened to this thing.
|
|
|
override float | targetSpeed [get, set] |
|
virtual float | targetAngularSpeed [get, set] |
|
virtual float | actualAngularSpee [get] |
| Get the actual speed from the encoder.
|
|
static Thing | localRoot [get] |
| The root thing for the local participant.
|
|
virtual string | name [get, set] |
| The name of the thing.
|
|
string | modelUrl [get, set] |
| An URL pointing to the location where a model of the thing can be found.
|
|
Thing | parent [get, set] |
| The parent of this thing.
|
|
bool | isRoot [get] |
| Indication whether this is a root thing.
|
|
Spherical | position [get, set] |
| The position of the thing in local space, in meters.
|
|
SwingTwist | orientation [get, set] |
| The orientation of the thing in local space.
|
|
Spherical | linearVelocity [get, set] |
| The linear velocity of the thing in local space in meters per second.
|
|
Spherical | angularVelocity [get, set] |
| The angular velocity of the thing in local space in degrees per second.
|
|