ekf2-agp: ensure logging of AGP aid_src topic

This commit is contained in:
bresch 2024-01-19 14:25:25 +01:00 committed by Daniel Agar
parent 4268759d4a
commit 5d9081b0dd
2 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,11 @@ class Ekf;
class AuxGlobalPosition : public ModuleParams
{
public:
AuxGlobalPosition() : ModuleParams(nullptr) {}
AuxGlobalPosition() : ModuleParams(nullptr)
{
_estimator_aid_src_aux_global_position_pub.advertise();
}
~AuxGlobalPosition() = default;
void update(Ekf &ekf, const estimator::imuSample &imu_delayed);

View File

@ -205,7 +205,7 @@ void LoggedTopics::add_default_topics()
// add_optional_topic_multi("estimator_aid_src_optical_flow", 100, MAX_ESTIMATOR_INSTANCES);
// add_optional_topic_multi("estimator_aid_src_terrain_optical_flow", 100, MAX_ESTIMATOR_INSTANCES);
// add_optional_topic_multi("estimator_aid_src_ev_yaw", 100, MAX_ESTIMATOR_INSTANCES);
//add_optional_topic_multi("estimator_aid_src_aux_global_position", 100, MAX_ESTIMATOR_INSTANCES);
add_optional_topic_multi("estimator_aid_src_aux_global_position", 100, MAX_ESTIMATOR_INSTANCES);
// log all raw sensors at minimal rate (at least 1 Hz)
add_topic_multi("battery_status", 200, 2);