diff --git a/libraries/AP_NavEKF/AP_NavEKF.h b/libraries/AP_NavEKF/AP_NavEKF.h
index 14eb82ed84..f051767c08 100644
--- a/libraries/AP_NavEKF/AP_NavEKF.h
+++ b/libraries/AP_NavEKF/AP_NavEKF.h
@@ -17,9 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-
-#ifndef AP_NavEKF
-#define AP_NavEKF
+#pragma once
#include
#include
@@ -300,5 +298,3 @@ private:
AP_Int8 _gpsCheck; // Bitmask controlling which preflight GPS checks are bypassed
};
-
-#endif // AP_NavEKF
diff --git a/libraries/AP_NavEKF/AP_NavEKF_core.h b/libraries/AP_NavEKF/AP_NavEKF_core.h
index db02a6f254..467a95b9e0 100644
--- a/libraries/AP_NavEKF/AP_NavEKF_core.h
+++ b/libraries/AP_NavEKF/AP_NavEKF_core.h
@@ -17,9 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-
-#ifndef AP_NavEKF_core
-#define AP_NavEKF_core
+#pragma once
#include
#include
@@ -875,5 +873,3 @@ private:
// vehicle specific initial gyro bias uncertainty
float InitialGyroBiasUncertainty(void) const;
};
-
-#endif // AP_NavEKF_core
diff --git a/libraries/AP_NavEKF/AP_Nav_Common.h b/libraries/AP_NavEKF/AP_Nav_Common.h
index 5ca1c2a6b4..b538f87e27 100644
--- a/libraries/AP_NavEKF/AP_Nav_Common.h
+++ b/libraries/AP_NavEKF/AP_Nav_Common.h
@@ -15,9 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-
-#ifndef AP_Nav_Common
-#define AP_Nav_Common
+#pragma once
union nav_filter_status {
struct {
@@ -55,5 +53,3 @@ union nav_gps_status {
} flags;
uint16_t value;
};
-
-#endif // AP_Nav_Common