Skip to content

Commit

Permalink
autotest: add LD06 to ProximitySensor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Dec 20, 2024
1 parent 270132a commit 69439f2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69439f2

Please sign in to comment.