Tools: rover: use do_set_relay

This commit is contained in:
Pierre Kancir 2019-07-15 11:22:44 +02:00 committed by Peter Barker
parent 98d897e790
commit 32f5d80689
1 changed files with 2 additions and 2 deletions

View File

@ -520,9 +520,9 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
raise ex
def test_servorelayevents(self):
self.mavproxy.send("relay set 0 0\n")
self.do_set_relay(0, 0)
off = self.get_parameter("SIM_PIN_MASK")
self.mavproxy.send("relay set 0 1\n")
self.do_set_relay(0, 1)
on = self.get_parameter("SIM_PIN_MASK")
if on == off:
raise NotAchievedException(