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 »

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: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: data logs specification

Post by tobias »

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 »

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: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: data logs specification

Post by tobias »

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