Skip to content

Commit

Permalink
fix bins
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Nov 15, 2024
1 parent b909a6c commit 55b147f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions actuator/robstride/src/bin/multisupervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,21 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Added motors {:?} to zero list", test_ids);
}
"get_feedback" | "g" => {
let feedback = controller.get_latest_feedback();
let feedback = controller.get_latest_feedback()?;
for (id, fb) in feedback {
println!("Motor {}: {:?}", id, fb);
}
}
"pause" | "w" => {
controller.toggle_pause();
controller.toggle_pause()?;
println!("Toggled pause state");
}
"reset" | "r" => {
controller.reset();
controller.reset()?;
println!("Reset motors");
}
"quit" | "q" => {
controller.stop();
controller.stop()?;
println!("Exiting...");
break;
}
Expand Down
8 changes: 4 additions & 4 deletions actuator/robstride/src/bin/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,21 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Added motor {} to zero list", test_id);
}
"get_feedback" | "g" => {
let feedback = controller.get_latest_feedback();
let feedback = controller.get_latest_feedback()?;
for (id, fb) in feedback {
println!("Motor {}: {:?}", id, fb);
}
}
"pause" | "w" => {
controller.toggle_pause();
controller.toggle_pause()?;
println!("Toggled pause state");
}
"reset" | "r" => {
controller.reset();
controller.reset()?;
println!("Reset motors");
}
"quit" | "q" => {
controller.stop();
controller.stop()?;
println!("Exiting...");
break;
}
Expand Down
4 changes: 2 additions & 2 deletions actuator/robstride/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::time::Duration;
use crate::motor::{MotorControlParams, MotorFeedback, MotorSdoParams, Motors};
use crate::types::{MotorType, RunMode};
use log::{error, info};
use eyre::{eyre, WrapErr, Result};
use eyre::{eyre, Result};

pub struct MotorsSupervisor {
motors: Arc<Mutex<Motors>>,
Expand Down Expand Up @@ -634,6 +634,6 @@ impl MotorsSupervisor {

impl Drop for MotorsSupervisor {
fn drop(&mut self) {
self.stop();
let _ = self.stop();
}
}

0 comments on commit 55b147f

Please sign in to comment.