From dfb720bab6d0d237705624ef8baea3dbd6b40716 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 20 Apr 2015 11:40:04 +0900 Subject: [PATCH] Copter: rename FULL_IMU logging to IMU_FAST This naming is consistent with the earlier ATTITUDE_FAST option and clarifies that it's the rate that's increased rather than the content. --- ArduCopter/ArduCopter.pde | 2 +- ArduCopter/defines.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 7d54eee9be..1249e83ff4 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -1008,7 +1008,7 @@ static void fifty_hz_logging_loop() // should be run at the MAIN_LOOP_RATE static void full_rate_logging_loop() { - if (should_log(MASK_LOG_FULL_IMU)) { + if (should_log(MASK_LOG_IMU_FAST)) { DataFlash.Log_Write_IMU(ins); } } diff --git a/ArduCopter/defines.h b/ArduCopter/defines.h index e20033d20b..6fc2d4fb2f 100644 --- a/ArduCopter/defines.h +++ b/ArduCopter/defines.h @@ -261,7 +261,7 @@ enum FlipState { #define MASK_LOG_CAMERA (1<<15) #define MASK_LOG_WHEN_DISARMED (1UL<<16) #define MASK_LOG_MOTBATT (1UL<<17) -#define MASK_LOG_FULL_IMU (1UL<<18) +#define MASK_LOG_IMU_FAST (1UL<<18) #define MASK_LOG_ANY 0xFFFF // DATA - event logging