Skip to content

Commit

Permalink
ekf-agp: fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bresch committed Dec 12, 2024
1 parent fc6c678 commit cc92979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void AuxGlobalPosition::update(Ekf &ekf, const estimator::imuSample &imu_delayed
return;
}

estimator_aid_source2d_s aid_src{};
estimator_aid_source2d_s &aid_src = _aid_src_aux_global_position;
const LatLonAlt position(sample.latitude, sample.longitude, sample.altitude_amsl);
const Vector2f innovation = (ekf.getLatLonAlt() - position).xy(); // altitude measurements are not used

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class AuxGlobalPosition : public ModuleParams
uint8_t lat_lon_reset_counter{};
};

estimator_aid_source2d_s _aid_src_aux_global_position{};
RingBuffer<AuxGlobalPositionSample> _aux_global_position_buffer{20}; // TODO: size with _obs_buffer_length and actual publication rate
uint64_t _time_last_buffer_push{0};

Expand Down

0 comments on commit cc92979

Please sign in to comment.