Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Oct 10, 2024
1 parent 8a74b5d commit 55cc94a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions actuator/rust/robstride/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use robstride::{MotorInfo, MotorType, Motors};
use robstride::{MotorType, Motors};
use std::collections::HashMap;
use std::error::Error;
use std::f32::consts::PI;
Expand Down Expand Up @@ -70,10 +70,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// Create motor instances
let mut motors = Motors::new(
"/dev/ttyUSB0",
vec![MotorInfo {
id: TEST_ID,
motor_type: MotorType::Type01,
}],
HashMap::from([(TEST_ID, MotorType::Type01)]),
)?;

let mut last_command: i32 = -1;
Expand Down

0 comments on commit 55cc94a

Please sign in to comment.