Servo class abstract Components
Servo represents a physical servo.
For more information, see Servo component.
- Inheritance
- Implementers
Constructors
- Servo()
Properties
Methods
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
isMoving(
) → Future< bool> - Get if the Servo is currently moving.
-
move(
int angle, {Map< String, dynamic> ? extra}) → Future<void> - Move the Servo to the provided angle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
position(
{Map< String, dynamic> ? extra}) → Future<int> - Get the current angle (degrees) of the Servo.
-
stop(
{Map< String, dynamic> ? extra}) → Future<void> - Stop the Servo. It is assumed that the servo stops immediately.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRobot(
RobotClient robot, String name) → Servo -
Get the Servo named
name
from the provided robot. -
getResourceName(
String name) → ResourceName -
Get the ResourceName for this Servo with the given
name
.