Page 1 of 1

Getting the yaw, roll and pitch values of the quadcopter

Posted: Fri Jan 22, 2016 4:52 am
by molatokarlo
Guys, I want to get the yaw, pitch and roll values of the quadcopter when it moves. Do anyone of you knows how to??

Re: Getting the yaw, roll and pitch values of the quadcopter

Posted: Fri Jan 22, 2016 12:40 pm
by derf
You can use the logging subsystem for that.
Take a look at the "Log TOC", "Log Blocks" and "Plotter" tabs In the Crazyflie Python client.

Re: Getting the yaw, roll and pitch values of the quadcopter

Posted: Mon Jan 25, 2016 12:32 am
by molatokarlo
derf wrote:You can use the logging subsystem for that.
Take a look at the "Log TOC", "Log Blocks" and "Plotter" tabs In the Crazyflie Python client.
Awesome, thanks! I was able to add new log values too and look at the graphs but I'm wondering if there's any of actually using the values and/or setting the values for something like automatic flight.

Re: Getting the yaw, roll and pitch values of the quadcopter

Posted: Mon Jan 25, 2016 1:18 am
by chad
molatokarlo wrote:
derf wrote:You can use the logging subsystem for that.
Take a look at the "Log TOC", "Log Blocks" and "Plotter" tabs In the Crazyflie Python client.
Awesome, thanks! I was able to add new log values too and look at the graphs but I'm wondering if there's any of actually using the values and/or setting the values for something like automatic flight.
Take a look at the examples directory in the crazyflie-clients-python folder. Specifically, have a look at zmqclientinput.py, and ramp.py. If you're going to use ZMQ, you'll want to take look at the wiki page on ZMQ and Crazyflie.