mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 08:21:35 +08:00
logger: Add logging profile to support comparison of multiple sensors (#8134)
This commit is contained in:
committed by
Daniel Agar
parent
136d259876
commit
c9f44531c2
@@ -660,6 +660,14 @@ void Logger::add_thermal_calibration_topics()
|
||||
add_topic("sensor_gyro", 100);
|
||||
}
|
||||
|
||||
void Logger::add_sensor_comparison_topics()
|
||||
{
|
||||
add_topic("sensor_accel", 100);
|
||||
add_topic("sensor_baro", 100);
|
||||
add_topic("sensor_gyro", 100);
|
||||
add_topic("sensor_mag", 100);
|
||||
}
|
||||
|
||||
void Logger::add_system_identification_topics()
|
||||
{
|
||||
// for system id need to log imu and controls at full rate
|
||||
@@ -811,6 +819,11 @@ void Logger::run()
|
||||
if (sdlog_profile & SDLogProfileMask::DEBUG_TOPICS) {
|
||||
add_debug_topics();
|
||||
}
|
||||
|
||||
if (sdlog_profile & SDLogProfileMask::SENSOR_COMPARISON) {
|
||||
add_sensor_comparison_topics();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int vehicle_command_sub = -1;
|
||||
|
||||
Reference in New Issue
Block a user