Skip to content

Commit

Permalink
Copter: log DU32 faster
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Feb 13, 2015
1 parent 8b4e62c commit f043cc2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ArduCopter/ArduCopter.pde
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,9 @@ static void fifty_hz_logging_loop()
DataFlash.Log_Write_IMU(ins);
}
#endif
if (should_log(MASK_LOG_ANY)) {
Log_Write_Data(DATA_AP_STATE, ap.value);
}
}

// three_hz_loop - 3.3hz loop
Expand All @@ -1117,10 +1120,6 @@ static void three_hz_loop()
// one_hz_loop - runs at 1Hz
static void one_hz_loop()
{
if (should_log(MASK_LOG_ANY)) {
Log_Write_Data(DATA_AP_STATE, ap.value);
}

// perform pre-arm checks & display failures every 30 seconds
static uint8_t pre_arm_display_counter = 15;
pre_arm_display_counter++;
Expand Down

0 comments on commit f043cc2

Please sign in to comment.