dronecrew / px4tools

PX4 flight analysis tools.
BSD 3-Clause "New" or "Revised" License
84 stars 48 forks source link

The 'or' needs to be 'and' #37

Open Marxlp opened 5 years ago

Marxlp commented 5 years ago

https://github.com/dronecrew/px4tools/blob/665502d483ef0ecfb51fddb9a46eb550c2e62524/px4tools/ulog.py#L156

When use px4tools, I encountered the error shown as below:

'DataFrame' object has no attribute 't_vehicle_groundtruth_0__f_q_0_'

After tracing the error, I found a bug. In my ulog data I have t_vehicle_local_position_0__f_x but no t_vehicle_groundtruth_0__f_q_0_. But the code under the if statement rely on both of them, the code below shouldn't be executed.