mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 03:01:35 +08:00
logger: add raw FIFO high-rate IMU logging profiles
Minimum requirement to use: set IMU_GYRO_RATEMAX to 400. Logging rate of a single topic: ~85 KB/s. If multiple should be logged, a really good SD card has to be used.
This commit is contained in:
@@ -201,6 +201,16 @@ void LoggedTopics::add_vision_and_avoidance_topics()
|
||||
add_topic("vehicle_visual_odometry", 30);
|
||||
}
|
||||
|
||||
void LoggedTopics::add_raw_imu_gyro_fifo()
|
||||
{
|
||||
add_topic("sensor_gyro_fifo");
|
||||
}
|
||||
|
||||
void LoggedTopics::add_raw_imu_accel_fifo()
|
||||
{
|
||||
add_topic("sensor_accel_fifo");
|
||||
}
|
||||
|
||||
void LoggedTopics::add_system_identification_topics()
|
||||
{
|
||||
// for system id need to log imu and controls at full rate
|
||||
@@ -401,4 +411,12 @@ void LoggedTopics::initialize_configured_topics(SDLogProfileMask profile)
|
||||
if (profile & SDLogProfileMask::VISION_AND_AVOIDANCE) {
|
||||
add_vision_and_avoidance_topics();
|
||||
}
|
||||
|
||||
if (profile & SDLogProfileMask::RAW_IMU_GYRO_FIFO) {
|
||||
add_raw_imu_gyro_fifo();
|
||||
}
|
||||
|
||||
if (profile & SDLogProfileMask::RAW_IMU_ACCEL_FIFO) {
|
||||
add_raw_imu_accel_fifo();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user