diff --git a/src/modules/ekf2/EKF/aux_global_position.cpp b/src/modules/ekf2/EKF/aux_global_position.cpp index 539643513c27..efa856b5510d 100644 --- a/src/modules/ekf2/EKF/aux_global_position.cpp +++ b/src/modules/ekf2/EKF/aux_global_position.cpp @@ -68,7 +68,7 @@ void AuxGlobalPosition::update(Ekf &ekf, const estimator::imuSample &imu_delayed if (_aux_global_position_buffer.pop_first_older_than(imu_delayed.time_us, &sample)) { - if (!(_param_ekf2_agp_ctrl.get() & static_cast(Ctrl::HPOS))) { + if (!(_param_ekf2_agp_ctrl.get() & static_cast(AuxGlobalPositionCtrl::HPOS))) { return; } diff --git a/src/modules/ekf2/EKF/aux_global_position.hpp b/src/modules/ekf2/EKF/aux_global_position.hpp index 4f1355483f16..474019b2b972 100644 --- a/src/modules/ekf2/EKF/aux_global_position.hpp +++ b/src/modules/ekf2/EKF/aux_global_position.hpp @@ -88,11 +88,6 @@ class AuxGlobalPosition : public ModuleParams RingBuffer _aux_global_position_buffer{20}; // TODO: size with _obs_buffer_length and actual publication rate uint64_t _time_last_buffer_push{0}; - enum class Ctrl : uint8_t { - HPOS = (1<<0), - VPOS = (1<<1) - }; - enum class State { stopped, starting,