autotest: add LD06 to ProximitySensor tests

This commit is contained in:
Peter Barker 2024-12-20 13:38:39 +11:00 committed by Peter Barker
parent 67bbe83167
commit 6264fee765

View File

@ -7582,6 +7582,16 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
"OA_TYPE": 2, "OA_TYPE": 2,
}) })
sensors = [ # tuples of name, prx_type 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, { ('sf45b', 8, {
mavutil.mavlink.MAV_SENSOR_ROTATION_NONE: 270, mavutil.mavlink.MAV_SENSOR_ROTATION_NONE: 270,
mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_45: 258, mavutil.mavlink.MAV_SENSOR_ROTATION_YAW_45: 258,