Added derive for PID config fields.
This is so these config fields can be stored as JSON
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user