Plane: support raw IMU logging

This commit is contained in:
Andrew Tridgell 2015-05-07 12:11:52 +10:00
parent fabee44583
commit 1a7d831327
3 changed files with 6 additions and 0 deletions

View File

@ -1047,6 +1047,8 @@ static void one_second_loop()
if (should_log(MASK_LOG_MODE)) {
Log_Write_Status();
}
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW));
}
static void log_perf_info()

View File

@ -134,6 +134,7 @@ enum log_messages {
#define MASK_LOG_SONAR (1<<14)
#define MASK_LOG_ARM_DISARM (1<<15)
#define MASK_LOG_WHEN_DISARMED (1UL<<16)
#define MASK_LOG_IMU_RAW (1UL<<19)
// Waypoint Modes
// ----------------

View File

@ -294,6 +294,9 @@ static void startup_ground(void)
// ready to fly
serial_manager.set_blocking_writes_all(false);
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW));
ins.set_dataflash(&DataFlash);
gcs_send_text_P(SEVERITY_LOW,PSTR("\n\n Ready to FLY."));
}