git-svn-id: https://arducopter.googlecode.com/svn/trunk@979 f9c3cf11-9bcb-44bc-f272-b75c42450872

This commit is contained in:
jasonshort 2010-11-29 01:44:25 +00:00
parent a64c5ef782
commit 2ac2faf7a7

View File

@ -18,7 +18,7 @@ long
PID::get_pid(int32_t error, uint16_t dt, float scaler) PID::get_pid(int32_t error, uint16_t dt, float scaler)
{ {
float output = 0; float output = 0;
float delta_time = (float)dt / 1000; float delta_time = (float)dt / 1000.0;
// Compute proportional component // Compute proportional component
output += error * _kp; output += error * _kp;