Skip to content

Commit

Permalink
so very sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
ryescholin committed Jun 1, 2024
1 parent 6bc842e commit f62c71d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pod-operation/src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ impl StateMachine {

let encoder_value = self.wheel_encoder.lock().unwrap();
let distance = encoder_value.get_distance();
let velocity: f32 = encoder_value.get_velocity();
let velocity = encoder_value.get_velocity();
drop(encoder_value);

let full_json = json!({
"distance": distance,
"velocity": velocity,
"wheel_encoder": {
"distance": distance,
"velocity": velocity,
},
});

self.io
Expand Down

0 comments on commit f62c71d

Please sign in to comment.