We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d750b commit 681e072Copy full SHA for 681e072
src/lib.rs
@@ -30,9 +30,10 @@
30
//!
31
//! let dph = DynamixelProtocolHandler::v1();
32
33
-//! let pos =
+//! let raw_pos: i16 = mx::read_raw_present_position(&dph, serial_port.as_mut(), 11).expect("Communication error");
34
+//! let pos: f64 =
35
//! mx::read_present_position(&dph, serial_port.as_mut(), 11).expect("Communication error");
-//! println!("Motor 11 present position: {:?}", pos);
36
+//! println!("Motor 11 present position: {:?}rads (raw: {:?})", pos, raw_pos);
37
//! ```
38
39
//! ### With the high-level API
0 commit comments