Skip to content

Commit

Permalink
wp: wploader should expect zero points after a clear
Browse files Browse the repository at this point in the history
avoids mission-is-stale messages after clearing mission
  • Loading branch information
peterbarker committed Jul 21, 2023
1 parent edf98f4 commit f35925d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MAVProxy/modules/mavproxy_wp.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ def cmd_clear(self, args):
clear_type = mavutil.mavlink.MAV_MISSION_TYPE_ALL
self.master.mav.mission_clear_all_send(self.target_system, self.target_component, clear_type)
self.wploader.clear()
self.wploader.expected_count = 0
self.loading_waypoint_lasttime = time.time()

def cmd_wp(self, args):
Expand Down

0 comments on commit f35925d

Please sign in to comment.