Skip to content

Commit

Permalink
ekf2: fix a shadow warning
Browse files Browse the repository at this point in the history
Presumably this enum was defined twice.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Dec 5, 2023
1 parent d259386 commit 4f9d9ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/modules/ekf2/EKF/aux_global_position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(Ctrl::HPOS))) {
if (!(_param_ekf2_agp_ctrl.get() & static_cast<int32_t>(GnssCtrl::HPOS))) {
return;
}

Expand Down
5 changes: 0 additions & 5 deletions src/modules/ekf2/EKF/aux_global_position.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ class AuxGlobalPosition : public ModuleParams
RingBuffer<AuxGlobalPositionSample> _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,
Expand Down

0 comments on commit 4f9d9ba

Please sign in to comment.