logger: Add logging profile to support comparison of multiple sensors (#8134)

This commit is contained in:
Paul Riseborough
2017-10-20 09:30:55 -04:00
committed by Daniel Agar
parent 136d259876
commit c9f44531c2
3 changed files with 21 additions and 4 deletions
+13
View File
@@ -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;