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:
Beat Küng
2020-06-09 09:58:15 -04:00
committed by Daniel Agar
parent 590b65ebfb
commit 0fcb873636
4 changed files with 42 additions and 2 deletions
+6 -1
View File
@@ -51,7 +51,9 @@ enum class SDLogProfileMask : int32_t {
HIGH_RATE = 1 << 4,
DEBUG_TOPICS = 1 << 5,
SENSOR_COMPARISON = 1 << 6,
VISION_AND_AVOIDANCE = 1 << 7
VISION_AND_AVOIDANCE = 1 << 7,
RAW_IMU_GYRO_FIFO = 1 << 8,
RAW_IMU_ACCEL_FIFO = 1 << 9
};
enum class MissionLogType : int32_t {
@@ -139,6 +141,9 @@ private:
void add_debug_topics();
void add_sensor_comparison_topics();
void add_vision_and_avoidance_topics();
void add_raw_imu_gyro_fifo();
void add_raw_imu_accel_fifo();
/**
* add a logged topic (called by add_topic() above).
* @return true on success