Browse Source

Add estimator replay topics to default.

sbg
James Goppert 8 years ago committed by Lorenz Meier
parent
commit
15ae3a9eb7
  1. 11
      src/modules/logger/logger.cpp
  2. 2
      src/modules/logger/logger.h

11
src/modules/logger/logger.cpp

@ -554,7 +554,7 @@ bool Logger::copy_if_updated_multi(LoggerSubscription &sub, int multi_instance,
return updated; return updated;
} }
void Logger::add_default_topics() void Logger::add_common_topics()
{ {
#ifdef CONFIG_ARCH_BOARD_SITL #ifdef CONFIG_ARCH_BOARD_SITL
add_topic("vehicle_attitude_groundtruth", 10); add_topic("vehicle_attitude_groundtruth", 10);
@ -748,21 +748,22 @@ void Logger::run()
} }
if (_sdlog_profile == SDLOG_PROFILE_DEFAULT) { if (_sdlog_profile == SDLOG_PROFILE_DEFAULT) {
add_default_topics(); add_common_topics();
add_estimator_replay_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_ESTIMATOR_REPLAY) { } else if (_sdlog_profile == SDLOG_PROFILE_ESTIMATOR_REPLAY) {
add_default_topics(); add_common_topics();
add_estimator_replay_topics(); add_estimator_replay_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_THERMAL_CALIBRATION) { } else if (_sdlog_profile == SDLOG_PROFILE_THERMAL_CALIBRATION) {
add_thermal_calibration_topics(); add_thermal_calibration_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_SYSTEM_IDENTIFICATION) { } else if (_sdlog_profile == SDLOG_PROFILE_SYSTEM_IDENTIFICATION) {
add_default_topics(); add_common_topics();
add_system_identification_topics(); add_system_identification_topics();
} else { } else {
add_default_topics(); add_common_topics();
add_estimator_replay_topics(); add_estimator_replay_topics();
} }
} }

2
src/modules/logger/logger.h

@ -258,7 +258,7 @@ private:
*/ */
int add_topics_from_file(const char *fname); int add_topics_from_file(const char *fname);
void add_default_topics(); void add_common_topics();
void add_estimator_replay_topics(); void add_estimator_replay_topics();
void add_thermal_calibration_topics(); void add_thermal_calibration_topics();
void add_system_identification_topics(); void add_system_identification_topics();

Loading…
Cancel
Save