You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed px4tools using conda and everything works fine, except for px4tools.logsysid.control_design_ulog(data, do_plot=True)
Jupyter notebook returns:
~/anaconda3/lib/python3.6/site-packages/px4tools/logsysid.py in control_design(raw_data, do_plot, rolling_mean_window, verbose)
403 :return: (gain ordered dict, local variables)
404 """
--> 405 data, dt = setup_data(raw_data)
406 d_tc = 1.0 / 125 # nyquist frequency of derivative in PID, (250 Hz/2)
407 K_guess_att = np.matrix([[1.0]]).T
~/anaconda3/lib/python3.6/site-packages/px4tools/logsysid.py in setup_data(df)
25 :return: (df_rs, dt) resample dataframe and period (1 ms)
26 """
---> 27 df = px4tools.get_float_data(df)
28
29 t = pandas.to_timedelta(
~/anaconda3/lib/python3.6/site-packages/px4tools/analysis.py in get_float_data(dataframe)
165 Get float data out of dataframe.
166 """
--> 167 dataframe = dataframe[np.isfinite(dataframe.TIME_StartTime)]
168 float_cols = [isfloatarray(col) for col in dataframe.values.T]
169 return (dataframe.T[float_cols].T).astype(float)
I have the similar issue only that I am trying to run the ulog example ulog_analysis using my own ulog file. The data reading goes through but after that, I get the following error:
`'DataFrame' object has no attribute 't_vehicle_groundtruth_0__f_q_0_'
I had the same error when I had run px4tools.concat more than once in this example. Hopefully that fixes it. Print the column labels for each dictionary entry in d and you'll see if t_vehicle_attitude_0__f_roll_error exists.
I installed px4tools using conda and everything works fine, except for
px4tools.logsysid.control_design_ulog(data, do_plot=True)
Jupyter notebook returns:
Is there any resolution for this issue ? or how can I see analyze for PID controller?
The text was updated successfully, but these errors were encountered: