mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Tools: autotest: correct pattern match in get_parameter
This commit is contained in:
parent
802e4c6315
commit
5b03835103
@ -286,7 +286,7 @@ class AutoTest(ABC):
|
||||
|
||||
def get_parameter(self, name):
|
||||
self.mavproxy.send("param fetch %s\n" % name)
|
||||
self.mavproxy.expect("%s = (.*)" % (name,))
|
||||
self.mavproxy.expect("%s = ([0-9.]*)" % (name,))
|
||||
return float(self.mavproxy.match.group(1))
|
||||
|
||||
#################################################
|
||||
|
Loading…
Reference in New Issue
Block a user