1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! This crate defined a collection of robot related traits to allow
//! interoperability between generic inputs and outputs.
//!
//! Many of the traits were originally borrowed from the python gpiozero
//! library although I expect them to diverge over time.
//!
//! **Note:** This is still a work in progress and the API should not be considered stable until the
//! `1.0` release.
/// Represents a single motor. All commands are assumed to
/// supercede the previous one, i.e. they are *not* additive.
///
/// All `speed` fields are in arbitrary units of "power" between 0.0 and 1.0
/// Represents a differential drive robot. All commands are assumed to
/// supercede the previous one, i.e. they are *not* additive.
///
/// All `speed` fields are in arbitrary units of "power" between 0.0 and 1.0
/// Represents a single LED that can be turned on or off