mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
from math import sqrt
Make the call match the import
This commit is contained in:
parent
b26b6f07bd
commit
13894506f4
@ -98,7 +98,7 @@ class TestIMUMatch(Test):
|
||||
ydiff_filtered += (ydiff-ydiff_filtered)*dt/filter_tc
|
||||
zdiff_filtered += (zdiff-zdiff_filtered)*dt/filter_tc
|
||||
|
||||
diff_filtered = math.sqrt(xdiff_filtered**2+ydiff_filtered**2+zdiff_filtered**2)
|
||||
diff_filtered = sqrt(xdiff_filtered**2+ydiff_filtered**2+zdiff_filtered**2)
|
||||
max_diff_filtered = max(max_diff_filtered,diff_filtered)
|
||||
#print(max_diff_filtered)
|
||||
last_t = t
|
||||
|
Loading…
Reference in New Issue
Block a user