AP_Airspeed: example fix travis warning

missing function declaration
implicit cast
some style fix
This commit is contained in:
Pierre Kancir 2017-04-13 13:29:53 +02:00 committed by Francisco Ferreira
parent fede727d38
commit 3f4a3e535b
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
void setup();
void loop();
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
float temperature;
@ -65,7 +68,7 @@ void loop(void)
airspeed.get_temperature(temperature);
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);
}