From 6d844d8c7953e4d05ef5e7868ba8f23eaf94774a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 30 Aug 2024 08:41:16 +1000 Subject: [PATCH] autotest: test the simulated rangefinder driver --- Tools/autotest/arducopter.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index d0fbc73cee7f0..f854ac31473b2 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -8616,6 +8616,14 @@ def MaxBotixI2CXL(self): if ex is not None: raise ex + def fly_rangefinder_sitl(self): + self.set_parameters({ + "RNGFND1_TYPE": 100, + }) + self.reboot_sitl() + self.fly_rangefinder_drivers_fly([("unused", "sitl")]) + self.wait_disarmed() + def RangeFinderDrivers(self): '''Test rangefinder drivers''' self.set_parameters({ @@ -8669,6 +8677,7 @@ def RangeFinderDrivers(self): self.context_pop() self.fly_rangefinder_mavlink() + self.fly_rangefinder_sitl() # i.e. type 100 i2c_drivers = [ ("maxbotixi2cxl", 2),