From 15c0512fefa9acf2bd40e439ce347eb2e0ae64ff Mon Sep 17 00:00:00 2001 From: melfey Date: Sun, 7 Jun 2026 12:50:15 -0500 Subject: [PATCH] Added a comment for PID struct --- src/core/logic/pid.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/logic/pid.rs b/src/core/logic/pid.rs index bd22e21..f513c6e 100644 --- a/src/core/logic/pid.rs +++ b/src/core/logic/pid.rs @@ -17,6 +17,8 @@ pub struct Config { pub accel: f32, } +///A PID, the config field is used to handle all the needed configuration. +/// This PID using pid_step() then attempts to output a value between -1.0 and 1.0 to attempt to make the "current_value" passed in, match the "set_point" pub struct PID { pub config: Config,