From 9da4ecea248239005b8942dd05a7aa6080441872 Mon Sep 17 00:00:00 2001 From: Bryce Bixler <49173056+bbixler500@users.noreply.github.com> Date: Tue, 13 Aug 2024 08:40:14 -0700 Subject: [PATCH] Switch line order in HWP Supervisor brake logic (#720) --- socs/agents/hwp_supervisor/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socs/agents/hwp_supervisor/agent.py b/socs/agents/hwp_supervisor/agent.py index 3f3f346b5..f9a1a2eb1 100644 --- a/socs/agents/hwp_supervisor/agent.py +++ b/socs/agents/hwp_supervisor/agent.py @@ -957,10 +957,10 @@ def check_acu_ok_for_spinup(): self.run_and_validate(clients.pid.set_direction, kwargs=dict(direction=new_d)) self.run_and_validate(clients.pid.tune_stop) - self.run_and_validate(clients.pmx.set_on) - self.run_and_validate(clients.pmx.set_v, kwargs={'volt': state.brake_voltage}) self.run_and_validate(clients.pmx.ign_ext) + self.run_and_validate(clients.pmx.set_v, kwargs={'volt': state.brake_voltage}) + self.run_and_validate(clients.pmx.set_on) time.sleep(10) self.action.set_state(ControlState.WaitForBrake(