From b8ce08195fdd657f0b66af55a39316633f3b0b7b Mon Sep 17 00:00:00 2001 From: Greg Sandstrom Date: Mon, 26 Jun 2023 15:44:59 -0700 Subject: [PATCH] tweak paddle_moving logic so that anything above moving_torque threshold is considered moving, even if reported torque is static --- ssa/alarm/alarmist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssa/alarm/alarmist.py b/ssa/alarm/alarmist.py index 8afe5dc..e2058b7 100644 --- a/ssa/alarm/alarmist.py +++ b/ssa/alarm/alarmist.py @@ -152,7 +152,7 @@ class Alarmist: # Check three last points to see if paddle is moving paddle_moving = ( torque > float(self.config["thresholds"]["moving_torque"]) - ) and (torque != previous_torque or previous_torque != previouser_torque) + ) or (torque != previous_torque or previous_torque != previouser_torque) # check if coolant is flowing (coolant_flow_rate, _) = self.soars_state.get( "coolant_flow_rate", (0.0, None) -- 1.9.1