Page 1 of 1

How to log arrays

Posted: Mon Oct 28, 2019 12:35 pm
by chopin
Hello, I've seen here https://github.com/bitcraze/crazyflie-f ... .h#L54-L62 that you can only log ints or floats.
We have a sensor that sends many measurements so we wanted to know whether there's a convenient way to send them all in one array (or something similar) instead of having a lot of `LOG_ADD`s.
Thanks!

Re: How to log arrays

Posted: Tue Oct 29, 2019 9:12 am
by tobias
How big is the array? If you can fit it within on log packet (26 bytes) it is efficient as it only contains the binary data.

Re: How to log arrays

Posted: Thu Oct 31, 2019 6:31 am
by chopin
The array has 18 `uint16_t`s. For now we just `LOG_ADD` 18 times and it works fine, we just wanted to know whether there's a more elegant way of doing this.