mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_HAL: example uses millis/micros/panic functions
This commit is contained in:
parent
d7601095fa
commit
5292bc0054
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user