Tools: autotest: allow for return of negative values in parameters
This commit is contained in:
parent
e5435e02ad
commit
b197d05476
@ -350,7 +350,7 @@ class AutoTest(ABC):
|
||||
|
||||
def get_parameter(self, name):
|
||||
self.mavproxy.send("param fetch %s\n" % name)
|
||||
self.mavproxy.expect("%s = ([0-9.]*)" % (name,))
|
||||
self.mavproxy.expect("%s = ([-0-9.]*)" % (name,))
|
||||
return float(self.mavproxy.match.group(1))
|
||||
|
||||
#################################################
|
||||
|
Loading…
Reference in New Issue
Block a user