Skip to content

Commit

Permalink
autotest: test the simulated rangefinder driver
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 30, 2024
1 parent e8bd380 commit 6d844d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 6d844d8

Please sign in to comment.