From 897678bb26b7d9dbc32dde3a348f4659927bdc3b Mon Sep 17 00:00:00 2001 From: melfey Date: Sun, 7 Jun 2026 12:43:57 -0500 Subject: [PATCH] Added derive for PID config fields. This is so these config fields can be stored as JSON --- src/core/logic/pid.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/logic/pid.rs b/src/core/logic/pid.rs index 19fb743..bd22e21 100644 --- a/src/core/logic/pid.rs +++ b/src/core/logic/pid.rs @@ -1,4 +1,7 @@ +use serde::{Deserialize, Serialize}; + ///The Config for the PID system used by the controller +#[derive(Serialize, Deserialize, Debug, Default, Clone, Copy, PartialEq)] pub struct Config { ///The Proportional value for the controller pub kp: f32,