From 6264fee765e1d40fee2ad4c65e0a19c8d4c42846 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Dec 2024 13:38:39 +1100 Subject: [PATCH] autotest: add LD06 to ProximitySensor tests --- Tools/autotest/arducopter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index d2af1575e39b4..d11aaa1e636fa 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -7582,6 +7582,16 @@ def ProximitySensors(self): "OA_TYPE": 2, }) sensors = [ # tuples of name, prx_type + ('ld06', 16, { + mavutil.mavlink.MAV_SENSOR_ROTATION_NONE: 273, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_45: 256, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_90: 1130, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_135: 696, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_180: 625, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_225: 967, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_270: 760, + mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_315: 771, + }), ('sf45b', 8, { mavutil.mavlink.MAV_SENSOR_ROTATION_NONE: 270, mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_45: 258,