Add estimator replay topics to default.

This commit is contained in:
James Goppert
2017-06-29 07:53:06 -04:00
committed by Lorenz Meier
parent d10a491243
commit 15ae3a9eb7
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -554,7 +554,7 @@ bool Logger::copy_if_updated_multi(LoggerSubscription &sub, int multi_instance,
return updated;
}
void Logger::add_default_topics()
void Logger::add_common_topics()
{
#ifdef CONFIG_ARCH_BOARD_SITL
add_topic("vehicle_attitude_groundtruth", 10);
@@ -748,21 +748,22 @@ void Logger::run()
}
if (_sdlog_profile == SDLOG_PROFILE_DEFAULT) {
add_default_topics();
add_common_topics();
add_estimator_replay_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_ESTIMATOR_REPLAY) {
add_default_topics();
add_common_topics();
add_estimator_replay_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_THERMAL_CALIBRATION) {
add_thermal_calibration_topics();
} else if (_sdlog_profile == SDLOG_PROFILE_SYSTEM_IDENTIFICATION) {
add_default_topics();
add_common_topics();
add_system_identification_topics();
} else {
add_default_topics();
add_common_topics();
add_estimator_replay_topics();
}
}
+1 -1
View File
@@ -258,7 +258,7 @@ private:
*/
int add_topics_from_file(const char *fname);
void add_default_topics();
void add_common_topics();
void add_estimator_replay_topics();
void add_thermal_calibration_topics();
void add_system_identification_topics();