mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-09 17:34:01 -04:00
AP_Airspeed: example fix travis warning
missing function declaration implicit cast some style fix
This commit is contained in:
parent
fede727d38
commit
3f4a3e535b
@ -23,6 +23,9 @@
|
|||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||||
|
|
||||||
|
void setup();
|
||||||
|
void loop();
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
|
|
||||||
float temperature;
|
float temperature;
|
||||||
@ -65,7 +68,7 @@ void loop(void)
|
|||||||
airspeed.get_temperature(temperature);
|
airspeed.get_temperature(temperature);
|
||||||
|
|
||||||
hal.console->printf("airspeed %5.2f temperature %6.2f healthy = %u\n",
|
hal.console->printf("airspeed %5.2f temperature %6.2f healthy = %u\n",
|
||||||
airspeed.get_airspeed(), temperature, airspeed.healthy());
|
(double)airspeed.get_airspeed(), (double)temperature, airspeed.healthy());
|
||||||
}
|
}
|
||||||
hal.scheduler->delay(1);
|
hal.scheduler->delay(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user