Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Geodesic grid and compass calibration completion mask #3981
This PR addresses #3724 in the sense that it fills the completion mask in the compass calibration progress MAVLink message.
The bitmask is modified in the following situations:
I've implemented it that way so that listeners always get what is closest to "reality".
In px4-v2, this adds about 1.6k of flash size, from which about 750 bytes is static data, and 0 of stack.
With respect to data usage, considering sizeof(float) as 4 bytes, @tridge's suggestion would use 480 bytes for the normalized centroid vectors (only 40 vectors would be enough instead of 80).