Skip to content

Commit

Permalink
AP_NavEKF2: rearrange log-structure ifdefs
Browse files Browse the repository at this point in the history
put the positive clause first to be consistent across codebase
  • Loading branch information
peterbarker committed Jan 8, 2025
1 parent 4501346 commit b5d9534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_NavEKF2/LogStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ struct PACKED log_NKT {
float delVelDT_max;
};

#if !HAL_NAVEKF2_AVAILABLE
#define LOG_STRUCTURE_FROM_NAVEKF2
#else
#if HAL_NAVEKF2_AVAILABLE
#define LOG_STRUCTURE_FROM_NAVEKF2 \
{ 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 }, \
Expand All @@ -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_NKT_MSG, sizeof(log_NKT), \
"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

0 comments on commit b5d9534

Please sign in to comment.