Closed mzahana closed 7 years ago
I can reproduce this if I don't have a slycot installed, it must be a bug in python control. Please install slycot using the command below:
pip install slycot
I've filed a bug with python control here: https://github.com/python-control/python-control/issues/120
Here is my output without slycot.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/jgoppert/anaconda3/lib/python3.5/site-packages/control-dev-py3.5.egg/control/statesp.py in _convertToStateSpace(sys, **kw)
646 try:
--> 647 from slycot import td04ad
648 if len(kw):
ImportError: No module named 'slycot'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-3-cf0438594eeb> in <module>()
1 gains, design_data = px4tools.logsysid.control_design(data[20:80],
----> 2 do_plot=True)
3 print(json.dumps(gains, indent=4))
Does it make a difference if I am using Python 2.7?
No, it shouldn't.
I am trying to use the logsysid module in the px4tools on one of the logs that I fetched from Pixhawk, running PX4 stack.
When I run the provided example in , https://github.com/dronecrew/px4tools/blob/master/examples/Log%20based%20System%20Identification%20and%20Control%20Design.ipynb
I get the following error
What could be the problem?