Skip to content

Commit

Permalink
add drop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryescholin committed Jun 1, 2024
1 parent d344d5e commit 76242d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pod-operation/src/state_machine.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::thread::sleep;
use std::time::Duration;

use enum_map::{enum_map, EnumMap};
Expand All @@ -6,6 +7,7 @@ use serde_json::json;
use socketioxide::extract::AckSender;
use socketioxide::{extract::SocketRef, SocketIo};
use tokio::sync::Mutex;

use tracing::info;

use crate::components::brakes::Brakes;
Expand Down Expand Up @@ -141,7 +143,6 @@ impl StateMachine {
}
};
//info!("Wheel encoder value: {}", value);

interval.tick().await;
}
}
Expand Down Expand Up @@ -258,7 +259,8 @@ impl StateMachine {
let encoder_value = self.wheel_encoder.lock().unwrap();
let distance = encoder_value.get_distance();
let velocity: f32 = encoder_value.get_velocity();

drop(encoder_value);

let full_json = json!({
"distance": distance,
"velocity": velocity,
Expand Down

0 comments on commit 76242d4

Please sign in to comment.