autotest: do not rely on MAVProxy for sending banner request

This commit is contained in:
Peter Barker 2020-08-24 11:40:16 +10:00 committed by Peter Barker
parent 00bfe04539
commit a190490b64
1 changed files with 14 additions and 1 deletions

View File

@ -367,7 +367,20 @@ class AutoTestRover(AutoTest):
self.disarm_vehicle()
def do_get_banner(self):
self.mavproxy.send("long DO_SEND_BANNER 1\n")
target_sysid = self.sysid_thismav()
target_compid = 1
self.mav.mav.command_long_send(
target_sysid,
target_compid,
mavutil.mavlink.MAV_CMD_DO_SEND_BANNER,
1, # confirmation
1, # send it
0,
0,
0,
0,
0,
0)
start = time.time()
while True:
m = self.mav.recv_match(type='STATUSTEXT',