mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
autotest: fixed wait_pitch()
This commit is contained in:
parent
be253c6cd9
commit
36cc266626
@ -105,7 +105,7 @@ def wait_pitch(mav, pitch, accuracy, timeout=30):
|
|||||||
p = math.degrees(m.pitch)
|
p = math.degrees(m.pitch)
|
||||||
r = math.degrees(m.roll)
|
r = math.degrees(m.roll)
|
||||||
print("Pitch %d Roll %d" % (p, r))
|
print("Pitch %d Roll %d" % (p, r))
|
||||||
if math.fabs(r - pitch) <= accuracy:
|
if math.fabs(p - pitch) <= accuracy:
|
||||||
print("Attained pitch %d" % pitch)
|
print("Attained pitch %d" % pitch)
|
||||||
return True
|
return True
|
||||||
print("Failed to attain pitch %d" % pitch)
|
print("Failed to attain pitch %d" % pitch)
|
||||||
|
Loading…
Reference in New Issue
Block a user