AP_NavEKF2: rearrange log-structure ifdefs

put the positive clause first to be consistent across codebase
This commit is contained in:
Peter Barker 2025-01-03 14:40:40 +11:00 committed by Peter Barker
parent 5fef5adade
commit c30e3ed141

View File

@ -284,9 +284,7 @@ struct PACKED log_NKT {
float delVelDT_max; float delVelDT_max;
}; };
#if !HAL_NAVEKF2_AVAILABLE #if HAL_NAVEKF2_AVAILABLE
#define LOG_STRUCTURE_FROM_NAVEKF2
#else
#define LOG_STRUCTURE_FROM_NAVEKF2 \ #define LOG_STRUCTURE_FROM_NAVEKF2 \
{ LOG_NKF0_MSG, sizeof(log_NKF0), \ { LOG_NKF0_MSG, sizeof(log_NKF0), \
"NKF0","QBBccCCcccccccc","TimeUS,C,ID,rng,innov,SIV,TR,BPN,BPE,BPD,OFH,OFL,OFN,OFE,OFD", "s#-m---mmmmmmmm", "F--B---BBBBBBBB" , true }, \ "NKF0","QBBccCCcccccccc","TimeUS,C,ID,rng,innov,SIV,TR,BPN,BPE,BPD,OFH,OFL,OFN,OFE,OFD", "s#-m---mmmmmmmm", "F--B---BBBBBBBB" , true }, \
@ -303,4 +301,6 @@ struct PACKED log_NKT {
{ LOG_NKQ_MSG, sizeof(log_NKQ), "NKQ", "QBffff", "TimeUS,C,Q1,Q2,Q3,Q4", "s#----", "F-0000" , true }, \ { LOG_NKQ_MSG, sizeof(log_NKQ), "NKQ", "QBffff", "TimeUS,C,Q1,Q2,Q3,Q4", "s#----", "F-0000" , true }, \
{ LOG_NKT_MSG, sizeof(log_NKT), \ { LOG_NKT_MSG, sizeof(log_NKT), \
"NKT", "QBIffffffff", "TimeUS,C,Cnt,IMUMin,IMUMax,EKFMin,EKFMax,AngMin,AngMax,VMin,VMax", "s#sssssssss", "F-000000000", true }, "NKT", "QBIffffffff", "TimeUS,C,Cnt,IMUMin,IMUMax,EKFMin,EKFMax,AngMin,AngMax,VMin,VMax", "s#sssssssss", "F-000000000", true },
#else
#define LOG_STRUCTURE_FROM_NAVEKF2
#endif #endif