Skip to content

Commit 41d0c67

Browse files
committed
Tools: mount POI lock Aux Func/Switch test ensure level
1 parent 467d24f commit 41d0c67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tools/autotest/arducopter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6650,9 +6650,10 @@ def MountPOIFromAuxFunction(self):
66506650
mount_roll, mount_pitch, mount_yaw, mount_yaw_is_absolute = self.get_mount_roll_pitch_yaw_deg()
66516651
assert -46 <= mount_pitch <= -44, f"Pitch is out of range: {mount_pitch}"
66526652
self.fly_guided_move_local(100, 100, 70) # move and check that pitch and yaw track
6653+
WaitAndMaintainAttitude(self, 0, 0, epsilon=1, minimum_duration=1, timeout=5).run()
66536654
mount_roll, mount_pitch, mount_yaw, mount_yaw_is_absolute = self.get_mount_roll_pitch_yaw_deg()
6654-
assert -17 <= mount_pitch <= -15, f"Pitch2 is out of range: {mount_pitch}"
6655-
assert -179 <= mount_yaw <= -176, f"Yaw2 is out of range: {mount_yaw}"
6655+
assert -27 <= mount_pitch <= -23, f"Pitch2 is out of range: {mount_pitch}"
6656+
assert -179 <= mount_yaw <= -175, f"Yaw2 is out of range: {mount_yaw}"
66566657
self.set_rc(10, 1500) # switch to middle to return to RC target mode and check that mount reverts to initial angles
66576658
mount_roll, mount_pitch, mount_yaw, mount_yaw_is_absolute = self.get_mount_roll_pitch_yaw_deg()
66586659
assert -46 <= mount_pitch <= -44, f"Pitch3 is out of range: {mount_pitch}"

0 commit comments

Comments
 (0)