data logs specification

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
yche15Crazy
Beginner
Posts: 6
Joined: Thu Dec 06, 2018 12:22 pm

data logs specification

Post by yche15Crazy » Wed Dec 12, 2018 3:06 pm

HI,

I am searching the log of the real-time input data about {thrust, yaw, roll, pitch}, which from the controller to the crazyflie. I am not sure if the stabilizer is what I am looking for.
Where can I get the logs specification?

Thank you very much



tobias
Bitcraze
Posts: 1880
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: data logs specification

Post by tobias » Thu Dec 13, 2018 9:34 am

Are you looking to log the actual roll,pitch,yaw,thrust values received by the CF2?

I don't think those values are available but it could easily be added in e.g. stabilizer.c. Something like

Code: Select all

LOG_GROUP_START(stabilizer)
LOG_ADD(LOG_FLOAT, roll, &state.attitude.roll)
LOG_ADD(LOG_FLOAT, pitch, &state.attitude.pitch)
LOG_ADD(LOG_FLOAT, yaw, &state.attitude.yaw)
LOG_ADD(LOG_UINT16, thrust, &control.thrust)
LOG_ADD(LOG_FLOAT, rollSet, &setpoint.attitude.roll )
LOG_ADD(LOG_FLOAT, pitchSet, &setpoint.attitude.pitch)
LOG_ADD(LOG_FLOAT, yawSet, &setpoint.attitude.yaw)
LOG_ADD(LOG_FLOAT, thrustSet, &setpoint.thrust)
LOG_GROUP_STOP(stabilizer)

yche15Crazy
Beginner
Posts: 6
Joined: Thu Dec 06, 2018 12:22 pm

Re: data logs specification

Post by yche15Crazy » Sun Dec 16, 2018 5:18 pm

Hi, thanks for your solution.
So what is the next step I should do to upgrade with this new firmware?
I get only some information in your website about how to bootloader the zip document. Which package should I choose for flashing in this case?

And how can I add the code you showed to me on this firmware and use it: https://github.com/bitcraze/crazyflie-r ... ag/2018.10

tobias
Bitcraze
Posts: 1880
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: data logs specification

Post by tobias » Tue Dec 18, 2018 9:50 am

I would start with the getting started with development guide using the VM. If you will do firmware modifications I would install things natively as described in the readme of the different FW/SW on github.

Post Reply