Skip to content

Commit

Permalink
very basic implementaton
Browse files Browse the repository at this point in the history
  • Loading branch information
misha7b committed Oct 17, 2024
1 parent f90a29f commit 4d832a7
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion lib/localisation/src/control/navigator.rs
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
//commit test

pub struct Nabigator {

displacement: f64,
velocity: f64,
acceleration: f64,

}

impl Navigator {

pub fn new() -> Navigator {
Navigator {
displacement: 0.0,
velocity: 0.0,
acceleration: 0.0,
}
}

pub fn set_displacement(&mut self, displacement: f64) {
self.displacement = displacement;
}

pub fn set_velocity(&mut self, velocity: f64) {
self.velocity = velocity;
}

pub fn set_acceleration(&mut self, acceleration: f64) {
self.acceleration = acceleration;
}


}

0 comments on commit 4d832a7

Please sign in to comment.