@@ -15,50 +15,39 @@ abstract class Servo extends Resource {
15
15
16
16
/// Get the current angle (degrees) of the [Servo] .
17
17
///
18
- /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
19
- ///
20
18
/// ```
21
19
/// var angle = await myServo.position();
22
20
/// ```
23
- Future <int > position ({Map <String , dynamic >? extra});
24
-
25
- /// Stop the [Servo] . It is assumed that the servo stops immediately.
26
- ///
27
- /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
28
- ///
29
- Future <void > stop ({Map <String , dynamic >? extra});
30
-
31
- /// Get if the [Servo] is currently moving.
32
21
///
33
22
/// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
34
- Future <bool > isMoving ( );
23
+ Future <int > position ({ Map < String , dynamic > ? extra} );
35
24
36
- /// Get the [ResourceName] for this [Servo] with the given [name]
37
- ///
38
- /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
25
+ /// Stop the [Servo] . It is assumed that the servo stops immediately.
39
26
///
40
27
/// ```
41
28
/// await myServo.stop();
42
29
/// ```
43
- Future <void > stop ({Map <String , dynamic >? extra});
44
-
45
- /// Whether the [Servo] is currently moving.
46
30
///
47
31
/// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
32
+ Future <void > stop ({Map <String , dynamic >? extra});
33
+
34
+ /// Get if the [Servo] is currently moving.
48
35
///
49
36
/// ```
50
37
/// var isItMoving = await myServo.isMoving();
51
38
/// ```
39
+ ///
40
+ /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
52
41
Future <bool > isMoving ();
53
42
54
43
/// Get the [ResourceName] for this [Servo] with the given [name] .
55
44
///
56
- /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
57
- ///
58
45
/// ```
59
46
/// // Example:
60
47
/// var name = Servo.getResourceName('myServo');
61
48
/// ```
49
+ ///
50
+ /// For more information, see [Servo component] (https://docs.viam.com/components/servo/).
62
51
static ResourceName getResourceName (String name) {
63
52
return Servo .subtype.getResourceName (name);
64
53
}
0 commit comments