mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 18:06:39 +08:00
Tools/process_sensor_caldata.py fix scipy import
This commit is contained in:
@@ -7,7 +7,8 @@ import os
|
|||||||
import math
|
import math
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import scipy as sp
|
|
||||||
|
from scipy.signal import medfilt
|
||||||
|
|
||||||
from pyulog import *
|
from pyulog import *
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ def resampleWithDeltaX(x,y):
|
|||||||
return resampledX,resampledY
|
return resampledX,resampledY
|
||||||
|
|
||||||
def median_filter(data):
|
def median_filter(data):
|
||||||
return sp.signal.medfilt(data, 31)
|
return medfilt(data, 31)
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Reads in IMU data from a static thermal calibration test and performs a curve fit of gyro, accel and baro bias vs temperature')
|
parser = argparse.ArgumentParser(description='Reads in IMU data from a static thermal calibration test and performs a curve fit of gyro, accel and baro bias vs temperature')
|
||||||
parser.add_argument('filename', metavar='file.ulg', help='ULog input file')
|
parser.add_argument('filename', metavar='file.ulg', help='ULog input file')
|
||||||
|
|||||||
Reference in New Issue
Block a user