🦅 pidfrees v0.1.0
A Robust, High-Precision PID Controller for Rust.
Created by Jorge Andre Castro.
🛡️ The Mission
pidfreeS is designed to provide industrial-grade control logic while remaining strictly Open Source.
This crate is built to prevent the privatization of essential control techniques by using the GPL-2.0-or-later license.
🚀 Key Features
- no_std Compatible: Designed for bare-metal kernels (like JC-OS) and embedded systems.
- Industrial Robustness: Integrated Anti-Windup (clamping) and Derivative filtering (PV-based).
- Ultra-Optimized: Configured for minimal binary size (
opt-level = "z") and zero debug symbols. - Thread-Safe: Implements
SendandSyncfor multi-threaded robotics.
🛠️ Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
PidController;
// New PID: Kp, Ki, Kd, Target, Min_Output, Max_Output
= PidController::new(2.0, 0.5, 0.1, 50.0, 0.0, 100.0);
// Update with current measurement and delta time
= pid.update(45.0, 0.1);
⚖️ License
but you MUST share any modifications or derivative works.