Data logging from client and plot trajectory in matlab

Discussions about all things Bitcraze
Post Reply
abush
Beginner
Posts: 2
Joined: Tue Jun 18, 2019 5:51 pm

Data logging from client and plot trajectory in matlab

Post by abush » Wed Jun 19, 2019 12:52 pm

Hey everyone, this is my first time post in Bitcraze forum.I was trying to log a data from the client and plot the trajectory on matlab. I have read this article about the log block https://wiki.bitcraze.io/doc:crazyflie: ... log_blocks, and from my log block I got this.
Screenshot from 2019-06-19 08-40-56.png
. so here is my question, is the 'position estimate' data's accurate to plot the trajectory of the crazyflie? could you guys help me on the matlab code too to plot the trajectory, because when i plot the 'position estimate' data in matlab I got scattered figures and it doesn't show the trajectory.
Thanks,



kimberly
Expert
Posts: 110
Joined: Fri Jul 06, 2018 11:13 am

Re: Data logging from client and plot trajectory in matlab

Post by kimberly » Tue Jul 23, 2019 8:56 am

Hi, Sorry for the late reply so I hope you were able to find a solution to your problem in the mean time.

Yes, you need the position estimate log indeed, however it is not sure what you want to do? Do you want to log the position, because you would need to do that through our python libary (https://github.com/bitcraze/crazyflie-lib-python). There you should be able to write it out in a external .cvs or .txt file and then upload to matlab to plot it, but you can also directly plot it in python with matplotlib

Let us know if you still want help with this.

Post Reply