From 96bf48095e17f2da167593569a87a75741002410 Mon Sep 17 00:00:00 2001 From: melfey Date: Sun, 7 Jun 2026 00:29:58 -0500 Subject: [PATCH] removed "raw" from motor speed control names --- src/core/motor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/motor.rs b/src/core/motor.rs index 1697dbd..ac38b2f 100644 --- a/src/core/motor.rs +++ b/src/core/motor.rs @@ -130,16 +130,16 @@ pub trait Driver { /// you need to verify and map properly. /// 65535 should be the max possible speed, while 0 should be stopped. ///This is best to not call manually, use set_speed_and_direction_raw instead - fn set_speed_raw(&mut self, speed: u16); + fn set_speed(&mut self, speed: u16); ///Commands the motors to use the speed and spin in the same command. ///Uses a number between 0 and 65535 ///This should be used in most cases, unless the motor has the core::logic::motor::controller Trait, then the the methods from that should be used instead. - fn set_speed_and_direction_raw(&mut self, speed: u16, dir: Direction) { + fn set_speed_and_direction(&mut self, speed: u16, dir: Direction) { //Set direction before speed, so it won't start spinning in one direction, then snap to the other. //Most MCUs should execute these two lines of code so fast, that it should be neglible regardless. self.spin(dir); - self.set_speed_raw(speed); + self.set_speed(speed); } }