Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post delay option. #46

Merged
merged 7 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustypot"
version = "0.4.2"
version = "0.5.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Pollen Robotics"]
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 0.5.0

- Add an post delay option to the read and write method.

## Version 0.4.0

- Add support for orbita-2dof-foc device.
Expand Down
2 changes: 1 addition & 1 deletion examples/foc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.timeout(Duration::from_millis(100))
.open()?;

let io = DynamixelSerialIO::v1();
let io = DynamixelSerialIO::v1().with_post_delay(Duration::from_millis(1));

let id = 70;
let mut state = orbita_foc::read_motors_drivers_states(&io, serial_port.as_mut(), id)?;
Expand Down
96 changes: 0 additions & 96 deletions examples/poulpe.rs

This file was deleted.

13 changes: 3 additions & 10 deletions examples/poulpe2d.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::f32::consts::PI;
use std::time::SystemTime;
use std::{error::Error, thread, time::Duration, time::Instant};

use rustypot::device::orbita2d_poulpe::{self, MotorPositionSpeedLoad, MotorValue};
use rustypot::device::orbita2d_poulpe::{self, MotorValue};
// use rustypot::device::orbita3d_poulpe::{self, MotorValue};
use rustypot::DynamixelSerialIO;

Expand Down Expand Up @@ -123,14 +122,8 @@ fn main() -> Result<(), Box<dyn Error>> {
Ok(feedback) => {
nbok += 1;
println!(
"42 target: {} feedback pos: {} {} feedback vel: {} {} feedback torque: {} {}",
target,
feedback.position.motor_a,
feedback.position.motor_b,
feedback.speed.motor_a,
feedback.speed.motor_b,
feedback.load.motor_a,
feedback.load.motor_b
"42 target: {} feedback pos: {} {}",
target, feedback.position.motor_a, feedback.position.motor_b,
);
}
Err(e) => {
Expand Down
Loading
Loading