AP_Airspeed: examples use millis/micros/panic functions
This commit is contained in:
parent
2b10e0fac0
commit
410bbe4c26
@ -45,8 +45,8 @@ void setup()
|
|||||||
void loop(void)
|
void loop(void)
|
||||||
{
|
{
|
||||||
static uint32_t timer;
|
static uint32_t timer;
|
||||||
if((hal.scheduler->millis() - timer) > 100) {
|
if((AP_HAL::millis() - timer) > 100) {
|
||||||
timer = hal.scheduler->millis();
|
timer = AP_HAL::millis();
|
||||||
airspeed.read();
|
airspeed.read();
|
||||||
hal.console->printf("airspeed %.2f healthy=%u\n", airspeed.get_airspeed(), airspeed.healthy());
|
hal.console->printf("airspeed %.2f healthy=%u\n", airspeed.get_airspeed(), airspeed.healthy());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user