From 429ec1792c043920b939e695d49c8e1e2ddb9261 Mon Sep 17 00:00:00 2001 From: Michael Belyaev Date: Sat, 16 Nov 2024 14:08:01 +0000 Subject: [PATCH] small bug fixex --- lib/localisation/src/control.rs | 2 +- lib/localisation/src/control/localizer.rs | 8 ++++---- lib/localisation/src/control/navigator.rs | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 lib/localisation/src/control/navigator.rs diff --git a/lib/localisation/src/control.rs b/lib/localisation/src/control.rs index 0f450390..eea187d4 100644 --- a/lib/localisation/src/control.rs +++ b/lib/localisation/src/control.rs @@ -1 +1 @@ -pub mod navigator; +pub mod localizer; diff --git a/lib/localisation/src/control/localizer.rs b/lib/localisation/src/control/localizer.rs index d58508e8..c16dcd09 100644 --- a/lib/localisation/src/control/localizer.rs +++ b/lib/localisation/src/control/localizer.rs @@ -2,16 +2,16 @@ use crate::filtering::kalman_filter::KalmanFilter; -pub struct Navigator { +pub struct Localizer { displacement: f64, velocity: f64, acceleration: f64, kalman_filter: KalmanFilter, } -impl Navigator { - pub fn new(kalman_filter: KalmanFilter) -> Navigator { - Navigator { +impl Localizer { + pub fn new(kalman_filter: KalmanFilter) -> Localizer { + Localizer { displacement: 0.0, velocity: 0.0, acceleration: 0.0, diff --git a/lib/localisation/src/control/navigator.rs b/lib/localisation/src/control/navigator.rs deleted file mode 100644 index 8b137891..00000000 --- a/lib/localisation/src/control/navigator.rs +++ /dev/null @@ -1 +0,0 @@ -