pub struct PressureControlConfig {
pub kp: f64,
pub ki: f64,
pub kd: f64,
pub feed_forward: f64,
pub max_step: f64,
pub max_integral: f64,
pub filter_alpha: f64,
pub invert_direction: bool,
pub tolerance: f64,
pub settling_time: f64,
}Expand description
Configuration for the Pressure Control function block.
Fields§
§kp: f64Proportional gain (Kp).
ki: f64Integral gain (Ki).
kd: f64Derivative gain (Kd).
feed_forward: f64Feed forward value added directly to the output.
max_step: f64Maximum allowed position delta (in user units) per call/tick. Critical for safety to prevent crushing the load cell. E.g., 0.001 inches per ms tick.
max_integral: f64Maximum accumulated integral windup.
filter_alpha: f64Exponential Moving Average filter coefficient for the load cell (0.0 to 1.0). 1.0 = No filtering (raw data). 0.1 = Heavy filtering.
invert_direction: boolIf true, a positive error (need more pressure) results in a negative move. Set to true if moving the axis down (negative) increases compression.
tolerance: f64The acceptable load error window to be considered “in tolerance” (e.g., +/- 2.0 lbs).
settling_time: f64How long the load must remain within tolerance before reporting in_tolerance = true.
Trait Implementations§
Source§impl Clone for PressureControlConfig
impl Clone for PressureControlConfig
Source§fn clone(&self) -> PressureControlConfig
fn clone(&self) -> PressureControlConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more