Servo class abstract

Servo represents a physical servo.

Inheritance
Implementers

Constructors

Servo()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

subtype → const Subtype