Commit 22a44ea12479a41275e05eaedf2f73107fee04c4
1 parent
e19c7781ae
Exists in
main
dont consider paddle moving if paddle is below paddle_on torque
Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff
ssa/alarm/alarmist.py
View file @
22a44ea
... | ... | @@ -150,9 +150,10 @@ |
150 | 150 | ) |
151 | 151 | paddle_on = torque > float(self.config["thresholds"]["on_torque"]) |
152 | 152 | # Check three last points to see if paddle is moving |
153 | - paddle_moving = ( | |
154 | - torque > float(self.config["thresholds"]["moving_torque"]) | |
155 | - ) or (torque != previous_torque or previous_torque != previouser_torque) | |
153 | + paddle_moving = paddle_on and ( | |
154 | + (torque > float(self.config["thresholds"]["moving_torque"])) | |
155 | + or (torque != previous_torque or previous_torque != previouser_torque) | |
156 | + ) | |
156 | 157 | # check if coolant is flowing |
157 | 158 | (coolant_flow_rate, _) = self.soars_state.get( |
158 | 159 | "coolant_flow_rate", (0.0, None) |