Skip to content

Commit

Permalink
Tools: autotest: add test that ArduPilot indicates it can do PARAM_FLOAT
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 19, 2019
1 parent d250442 commit 27d6beb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,9 +1073,13 @@ def do_get_autopilot_capabilities(self):
m = self.mav.recv_match(type='AUTOPILOT_VERSION',
blocking=True,
timeout=10)
if m is not None:
self.progress("AUTOPILOT_VERSION received")
return
if m is None:
continue
if not (m.capabilities & mavutil.mavlink.MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT):
# all AP vehicles support PARAM_FLOAT
raise ValueError("Vehicle did not report itself as supporting PARAM_FLOAT")
self.progress("AUTOPILOT_VERSION received")
return
raise AutoTestTimeoutException("No AUTOPILOT_VERSION received")

def get_mode_from_mode_mapping(self, mode):
Expand Down

0 comments on commit 27d6beb

Please sign in to comment.