Plane: run is_crashed at 5hz instead of 1hz

This commit is contained in:
Tom Pittenger 2016-02-07 08:39:41 -08:00
parent 4fcd471d77
commit 66fcd8f58a
2 changed files with 2 additions and 2 deletions

View File

@ -328,8 +328,6 @@ void Plane::one_second_loop()
AP_Notify::flags.pre_arm_gps_check = true;
AP_Notify::flags.armed = arming.is_armed() || arming.arming_required() == AP_Arming::NO;
crash_detection_update();
#if AP_TERRAIN_AVAILABLE
if (should_log(MASK_LOG_GPS)) {
terrain.log_terrain_data(DataFlash);

View File

@ -155,6 +155,8 @@ void Plane::update_is_flying_5Hz(void)
}
previous_is_flying = new_is_flying;
crash_detection_update();
if (should_log(MASK_LOG_MODE)) {
Log_Write_Status();
}