|
|
@ -978,6 +978,9 @@ void loop() |
|
|
|
gps_fix_count = 0; |
|
|
|
gps_fix_count = 0; |
|
|
|
perf_mon_counter = 0; |
|
|
|
perf_mon_counter = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
// process communications with the GCS |
|
|
|
|
|
|
|
gcs_check(); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (timer - fast_loopTimer < 9000) { |
|
|
|
if (timer - fast_loopTimer < 9000) { |
|
|
@ -991,11 +994,6 @@ void loop() |
|
|
|
compass.accumulate(); |
|
|
|
compass.accumulate(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// process communications with the GCS |
|
|
|
|
|
|
|
if (timer - fast_loopTimer < 6000) { |
|
|
|
|
|
|
|
gcs_check(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -1330,8 +1328,7 @@ static void super_slow_loop() |
|
|
|
auto_disarming_counter = 0; |
|
|
|
auto_disarming_counter = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gcs_send_message(MSG_HEARTBEAT); |
|
|
|
// agmatthews - USERHOOKS |
|
|
|
|
|
|
|
|
|
|
|
#ifdef USERHOOK_SUPERSLOWLOOP |
|
|
|
#ifdef USERHOOK_SUPERSLOWLOOP |
|
|
|
USERHOOK_SUPERSLOWLOOP |
|
|
|
USERHOOK_SUPERSLOWLOOP |
|
|
|
#endif |
|
|
|
#endif |
|
|
|