AP_HAL: example uses millis/micros/panic functions

This commit is contained in:
Caio Marcelo de Oliveira Filho 2015-11-20 12:12:04 +09:00 committed by Randy Mackay
parent d7601095fa
commit 5292bc0054
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ static void test_uart(AP_HAL::UARTDriver *uart, const char *name)
return;
}
uart->printf("Hello on UART %s at %.3f seconds\n",
name, hal.scheduler->millis()*0.001f);
name, AP_HAL::millis()*0.001f);
}
void loop(void)
@ -62,7 +62,7 @@ void loop(void)
// also do a raw printf() on some platforms, which prints to the
// debug console
#if HAL_OS_POSIX_IO
::printf("Hello on debug console at %.3f seconds\n", hal.scheduler->millis()*0.001f);
::printf("Hello on debug console at %.3f seconds\n", AP_HAL::millis()*0.001f);
#endif
hal.scheduler->delay(1000);