mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
Tools: autotest: rename clear_mission to clear_mission_using_mavproxy
This commit is contained in:
parent
bca35ac469
commit
acf6cb8d75
Tools/autotest
@ -246,7 +246,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
# fly a square in alt_hold mode
|
# fly a square in alt_hold mode
|
||||||
def fly_square(self, side=50, timeout=300):
|
def fly_square(self, side=50, timeout=300):
|
||||||
|
|
||||||
self.clear_mission()
|
self.clear_mission_using_mavproxy()
|
||||||
|
|
||||||
self.takeoff(10)
|
self.takeoff(10)
|
||||||
|
|
||||||
|
@ -1940,7 +1940,7 @@ class AutoTest(ABC):
|
|||||||
|
|
||||||
def check_sitl_reset(self):
|
def check_sitl_reset(self):
|
||||||
self.wait_heartbeat()
|
self.wait_heartbeat()
|
||||||
self.clear_mission()
|
self.clear_mission_using_mavproxy()
|
||||||
if self.armed():
|
if self.armed():
|
||||||
self.progress("Armed at end of test; force-rebooting SITL")
|
self.progress("Armed at end of test; force-rebooting SITL")
|
||||||
self.disarm_vehicle(force=True)
|
self.disarm_vehicle(force=True)
|
||||||
@ -2788,7 +2788,7 @@ class AutoTest(ABC):
|
|||||||
if m is None:
|
if m is None:
|
||||||
raise NotAchievedException("Requested CAMERA_FEEDBACK did not arrive")
|
raise NotAchievedException("Requested CAMERA_FEEDBACK did not arrive")
|
||||||
|
|
||||||
def clear_mission(self):
|
def clear_mission_using_mavproxy(self):
|
||||||
self.mavproxy.send("wp clear\n")
|
self.mavproxy.send("wp clear\n")
|
||||||
self.mavproxy.send('wp list\n')
|
self.mavproxy.send('wp list\n')
|
||||||
self.mavproxy.expect('Requesting [0-9]+ waypoints')
|
self.mavproxy.expect('Requesting [0-9]+ waypoints')
|
||||||
|
Loading…
Reference in New Issue
Block a user