mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Plane: support raw IMU logging
This commit is contained in:
parent
fabee44583
commit
1a7d831327
@ -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()
|
||||
|
@ -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
|
||||
// ----------------
|
||||
|
@ -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."));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user