From 62b43eea8e2f729681eefd3375182ea22f2e9c71 Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Wed, 6 Dec 2023 12:34:41 +0000 Subject: [PATCH] Autotest: Rover temp --- Tools/autotest/rover.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/rover.py b/Tools/autotest/rover.py index 8a0ff7fd7eeec5..42761bbcf4cc63 100644 --- a/Tools/autotest/rover.py +++ b/Tools/autotest/rover.py @@ -566,6 +566,16 @@ def AC_Avoidance(self): def ServoRelayEvents(self): '''Test ServoRelayEvents''' + self.set_parameters({ + "RELAY1_FUNCTION": 1, # Enable relay 1 as a standard relay pin + "RELAY1_PIN": 1, # Set pin number, 1 in SIM_MASK_PIN + "RELAY2_FUNCTION": 1, # Enable relay 2 as a standard relay pin + "RELAY2_PIN": 2, # Set pin number, 2 in SIM_MASK_PIN + "RELAY6_FUNCTION": 1, # Enable relay 6 as a standard relay pin + "RELAY6_PIN": 6, # Set pin number, 32 in SIM_MASK_PIN + }) + self.reboot_sitl() # Needed for relay functions to take effect + for method in self.run_cmd, self.run_cmd_int: self.context_push() method(mavutil.mavlink.MAV_CMD_DO_SET_RELAY, p1=0, p2=0) @@ -603,7 +613,7 @@ def ServoRelayEvents(self): }) # add another servo: - self.set_parameter("RELAY6_PIN", 14) + # self.set_parameter("RELAY6_PIN", 14) self.assert_received_message_field_values('RELAY_STATUS', { "present": 35, "on": 0,