Plane: run is_crashed at 5hz instead of 1hz
This commit is contained in:
parent
4fcd471d77
commit
66fcd8f58a
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user