From 7933f94b2fd5995e0918498e9643e661d8d031c7 Mon Sep 17 00:00:00 2001 From: Ebin Date: Tue, 17 Sep 2019 23:27:51 +0530 Subject: [PATCH] Autotest: Balance Bot changes to Acro after Auto mission instead of Loiter --- Tools/autotest/apmrover2.py | 2 +- Tools/autotest/balancebot.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/autotest/apmrover2.py b/Tools/autotest/apmrover2.py index a223316645..6e20ff323f 100644 --- a/Tools/autotest/apmrover2.py +++ b/Tools/autotest/apmrover2.py @@ -450,7 +450,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm) raise NotAchievedException("Did not get home") self.progress("Distance home: %f (mode=%s)" % (self.distance_to_home(), self.mav.flightmode)) - if self.mode_is('HOLD') or self.mode_is('LOITER'): # loiter for balancebot + if self.mode_is('HOLD') or self.mode_is('ACRO'): # acro for balancebot break # the EKF doesn't pull us down to 0 speed: diff --git a/Tools/autotest/balancebot.py b/Tools/autotest/balancebot.py index 599e2ca4c6..c5c978c977 100644 --- a/Tools/autotest/balancebot.py +++ b/Tools/autotest/balancebot.py @@ -43,8 +43,8 @@ class AutoTestBalanceBot(AutoTestRover): def drive_rtl_mission(self): # if we Hold then the balancebot continues to wander - # indefinitely at ~1m/s - self.set_parameter("MIS_DONE_BEHAVE", 1) + # indefinitely at ~1m/s, hence we set to Acro + self.set_parameter("MIS_DONE_BEHAVE", 2) super(AutoTestBalanceBot, self).drive_rtl_mission() def tests(self):