Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MJE10 committed Jan 2, 2025
1 parent f4b64ae commit dfc7d98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core_pb/src/driving/peripherals.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::driving::{RobotInterTaskMessage, RobotTaskMessenger, Task};
use crate::grid::standard_grid::StandardGrid;
use crate::localization::estimate_location;
use crate::messages::{ExtraImuData, FrequentServerToRobot, RobotButton, RobotToServerMessage, SensorData, MAX_SENSOR_ERR_LEN};
use crate::messages::{
ExtraImuData, RobotButton, RobotToServerMessage, SensorData, MAX_SENSOR_ERR_LEN,
};
use crate::names::RobotName;
use crate::region_localization::estimate_location_2;
use crate::robot_definition::RobotDefinition;
Expand Down Expand Up @@ -107,8 +108,7 @@ pub async fn peripherals_task<T: RobotPeripheralsBehavior, M: RobotTaskMessenger
for (i, sensor) in distances.iter_mut().enumerate() {
*sensor = handle_err(peripherals.distance_sensor(i).await);
}
let config = FrequentServerToRobot::new(name);
let location = estimate_location_2(grid, cv_location, &distances, &robot, config.cv_error);
let location = estimate_location_2(grid, cv_location, &distances, &robot);
display_manager.imu_angle = angle.clone();
display_manager.distances = distances.clone();
let sensors = SensorData {
Expand Down

0 comments on commit dfc7d98

Please sign in to comment.