Page 1 of 1

data logs specification

Posted: Wed Dec 12, 2018 3:06 pm
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

Re: data logs specification

Posted: Thu Dec 13, 2018 9:34 am
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)

Re: data logs specification

Posted: Sun Dec 16, 2018 5:18 pm
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

Re: data logs specification

Posted: Tue Dec 18, 2018 9:50 am
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.