From 58eb6475073eac0871077ec2ee29c30333b21f49 Mon Sep 17 00:00:00 2001 From: melfey Date: Fri, 12 Jun 2026 19:08:07 -0500 Subject: [PATCH] added docs comments for new method --- src/core/logic/motor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/logic/motor.rs b/src/core/logic/motor.rs index 52124a1..e39a507 100644 --- a/src/core/logic/motor.rs +++ b/src/core/logic/motor.rs @@ -40,6 +40,8 @@ impl Controller { .set_speed_and_direction(motor_command, self.current_direction); } + ///Creates a new Controller with a motor (of type T), a max speed and a pid::Config + /// This then allows for you to use the controller with the provided types pub fn new(motor: T, max_speed: Speed, config: pid::Config) -> Self { Controller { motor: motor,