From 720edc0fde080f3f0b094feff89d1df0a29281e3 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 13 Apr 2017 13:33:40 +0200 Subject: [PATCH] PID: example fix travis warning missing function declaration implicit cast some style fix --- libraries/PID/examples/pid/pid.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/PID/examples/pid/pid.cpp b/libraries/PID/examples/pid/pid.cpp index 1e87886a33..11e0d9ecf7 100644 --- a/libraries/PID/examples/pid/pid.cpp +++ b/libraries/PID/examples/pid/pid.cpp @@ -6,6 +6,9 @@ #include #include // ArduPilot Mega RC Library +void setup(); +void loop(); + const AP_HAL::HAL& hal = AP_HAL::get_HAL(); long radio_in; @@ -33,7 +36,9 @@ void setup() pid.load_gains(); hal.console->printf( "P %f I %f D %f imax %d\n", - pid.kP(), pid.kI(), pid.kD(), pid.imax()); + (double)pid.kP(), + (double)pid.kI(), + (double)pid.kD(), pid.imax()); } void loop()