AP_NavEKF: Fix parenthesis error in EKF status reporting and clean up logic
This fixes a bug which could have caused the realative position status to be incorrectly reported under some conditions and also caused a compiler warning message. the logic used to report the filter solution status has been broken down into smaller, easier to understand statements.
@ -4513,14 +4513,20 @@ return filter function status as a bitmasked integer
@@ -4513,14 +4513,20 @@ return filter function status as a bitmasked integer
voidNavEKF::getFilterStatus(uint8_t&status)const
{
// add code to set bits using private filter data here
status=(!state.quat.is_nan()<<0|// we can implement a better way to detect invalid attitude, but it is tricky to do reliably