mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 11:20:34 +08:00
Add estimator replay topics to default.
This commit is contained in:
committed by
Lorenz Meier
parent
d10a491243
commit
15ae3a9eb7
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user