Skip to content

Commit

Permalink
PID: example fix travis warning
Browse files Browse the repository at this point in the history
missing function declaration
implicit cast
some style fix
  • Loading branch information
khancyr authored and OXINARF committed Apr 13, 2017
1 parent b2c8bc8 commit 720edc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/PID/examples/pid/pid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 720edc0

Please sign in to comment.