Skip to content

Commit 681e072

Browse files
Update lib.rs
1 parent 50d750b commit 681e072

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
//!
3131
//! let dph = DynamixelProtocolHandler::v1();
3232
//!
33-
//! let pos =
33+
//! let raw_pos: i16 = mx::read_raw_present_position(&dph, serial_port.as_mut(), 11).expect("Communication error");
34+
//! let pos: f64 =
3435
//! mx::read_present_position(&dph, serial_port.as_mut(), 11).expect("Communication error");
35-
//! println!("Motor 11 present position: {:?}", pos);
36+
//! println!("Motor 11 present position: {:?}rads (raw: {:?})", pos, raw_pos);
3637
//! ```
3738
//!
3839
//! ### With the high-level API

0 commit comments

Comments
 (0)