mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
logger: log ekf2_replay topic if EKF2_REC_RPL is set
This commit is contained in:
@@ -591,6 +591,18 @@ void Logger::add_default_topics()
|
||||
add_topic("sensor_combined");
|
||||
add_topic("vehicle_gps_position");
|
||||
add_topic("vehicle_land_detected");
|
||||
|
||||
// log the replay topic if EKF2_REC_RPL is set
|
||||
param_t replay_handle = param_find("EKF2_REC_RPL");
|
||||
|
||||
if (replay_handle != PARAM_INVALID) {
|
||||
int32_t replay_value = 0;
|
||||
param_get(replay_handle, &replay_value);
|
||||
|
||||
if (replay_value == 1) {
|
||||
add_topic("ekf2_replay");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Logger::add_calibration_topics()
|
||||
|
||||
Reference in New Issue
Block a user