In [1]:
%load_ext autoreload
%autoreload 2c
import px4tools
import px4tools.logsysid
import pandas
import control
import json
%pylab inline
In [2]:
data = px4tools.process_data(pandas.read_csv('./sess052/log001.csv'))
In [3]:
gains, design_data = px4tools.logsysid.control_design(data[20:80],
do_plot=True)
print(json.dumps(gains, indent=4))
In [4]:
gains
Out[4]: