Logging Vectors/Matrix in a message of Arducopter

Here ( https://ardupilot.org/dev/docs/code-overview-adding-a-new-log-message.html ) it explains how to log variables in Arducopter. However I have a Problem. I would like to log the covariance matrix which has 20 x 20 dimension in a matrix. Do you have any idea how to improve the logging process instead of logging each variable and log the whole matrix?

Thanks!

No, not possible. But you can log around 14 variables per write() function call. so you just need 400/14 function calls.

1 Like