Rover: support raw IMU logging

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

View File

@ -737,6 +737,8 @@ static void one_second_loop(void)
}
counter = 0;
}
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW));
}
static void update_GPS_50Hz(void)

View File

@ -89,6 +89,7 @@ enum mode {
#define MASK_LOG_STEERING (1<<13)
#define MASK_LOG_RC (1<<14)
#define MASK_LOG_WHEN_DISARMED (1UL<<16)
#define MASK_LOG_IMU_RAW (1UL<<19)
// Waypoint Modes
// ----------------

View File

@ -248,6 +248,9 @@ static void startup_ground(void)
// so set serial ports non-blocking once we are ready to drive
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 drive."));
}