libcflie icon indicating copy to clipboard operation
libcflie copied to clipboard

A question about the log variable type

Open g1n0st opened this issue 6 years ago • 0 comments

Hello:

First very appreciate that you created such an excellent lib and it indeed help me alot. Because I am not recieve my Crazyflies yet, so I cannot test your lib so far. I skim through your code and found you default the type of variable log is double wthen you get the log message from the Crazyflie.

https://github.com/fairlight1337/libcflie/blob/4fca0655d9587944ab68acccb6b9542f2d6f04d3/include/cflie/CTOC.h#L59

But I looked back to the firmware of Crazyflies and found the variables in log may have different types.

https://github.com/bitcraze/crazyflie-firmware/blob/376a1de0dbadf300411c25a04c6f15341259ea43/src/modules/interface/log.h#L51

I am wondering if I want to recieve an another type variable's log (such as LOG_INT8 ), your code will work currently or not, and what I should do? After I got my Cf 2.0, I will test as well.

Jason

g1n0st avatar May 12 '18 13:05 g1n0st