forked from Archive/PX4-Autopilot
CI: better detect end of mission
if the vehicle doesn't land and disarm at the end of the mission, the current sequence doesn't reset to 0
This commit is contained in:
parent
25b02a9d0f
commit
3be6a439f1
|
@ -197,11 +197,9 @@ class MavrosMissionTest(MavrosTestCommon):
|
||||||
reached = (
|
reached = (
|
||||||
# advanced to next wp
|
# advanced to next wp
|
||||||
(index < self.mission_wp.current_seq)
|
(index < self.mission_wp.current_seq)
|
||||||
# end of mission, reset to first wp
|
# end of mission
|
||||||
or (mission_length > 1 and index == (mission_length - 1)
|
or (index == (mission_length - 1)
|
||||||
and self.mission_wp.current_seq == 0)
|
and self.mission_item_reached == index))
|
||||||
# end of mission with only 1 wp
|
|
||||||
or (mission_length == 1 and self.mission_item_reached == 0))
|
|
||||||
|
|
||||||
if reached:
|
if reached:
|
||||||
rospy.loginfo(
|
rospy.loginfo(
|
||||||
|
|
Loading…
Reference in New Issue