Rover: updates for AP_HAL::MemberProc

This commit is contained in:
Andrew Tridgell 2013-09-30 20:37:12 +10:00
parent d83dbb38b4
commit 3538e1190c
2 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,7 @@ static const AP_Scheduler::Task scheduler_tasks[] PROGMEM = {
{ update_events, 15, 1000 },
{ check_usb_mux, 15, 1000 },
{ mount_update, 1, 500 },
{ failsafe_check, 5, 500 },
{ gcs_failsafe_check, 5, 500 },
{ compass_accumulate, 1, 900 },
{ update_notify, 1, 100 },
{ one_second_loop, 50, 3000 }
@ -695,7 +695,7 @@ static void mount_update(void)
/*
check for GCS failsafe - 10Hz
*/
static void failsafe_check(void)
static void gcs_failsafe_check(void)
{
if (g.fs_gcs_enabled) {
failsafe_trigger(FAILSAFE_EVENT_GCS, last_heartbeat_ms != 0 && (millis() - last_heartbeat_ms) > 2000);

View File

@ -13,7 +13,7 @@
this failsafe_check function is called from the core timer interrupt
at 1kHz.
*/
void failsafe_check(void *arg)
static void failsafe_check()
{
static uint16_t last_mainLoop_count;
static uint32_t last_timestamp;