From 9b304503fe37dffce15cd6a16d6ca43084a72029 Mon Sep 17 00:00:00 2001 From: Matt Campbell Date: Tue, 3 Jun 2025 10:23:45 -0400 Subject: [PATCH] Correct next_control_output docs This removes the doc that next_control_output will panic if setpoint hasn't been set. Sent point was changed to required in commit 8eb094a839465357c40c140c017f3e614a3ccacb. --- src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f66f94a..65ea75d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,10 +211,6 @@ where } /// Given a new measurement, calculates the next [control output](ControlOutput). - /// - /// # Panics - /// - /// - If a setpoint has not been set via `update_setpoint()`. pub fn next_control_output(&mut self, measurement: T) -> ControlOutput { // Calculate the error between the ideal setpoint and the current // measurement to compare against