PID: example fix travis warning

missing function declaration
implicit cast
some style fix
This commit is contained in:
Pierre Kancir 2017-04-13 13:33:40 +02:00 committed by Francisco Ferreira
parent b2c8bc8074
commit 720edc0fde
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,9 @@
#include <AP_HAL/AP_HAL.h>
#include <PID/PID.h> // 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()