From 2ac2faf7a712f9e293203863b87376a03ec9e7f7 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Mon, 29 Nov 2010 01:44:25 +0000 Subject: [PATCH] git-svn-id: https://arducopter.googlecode.com/svn/trunk@979 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/PID/PID.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/PID/PID.cpp b/libraries/PID/PID.cpp index 7b50998d9f..2a5952780f 100644 --- a/libraries/PID/PID.cpp +++ b/libraries/PID/PID.cpp @@ -18,7 +18,7 @@ long PID::get_pid(int32_t error, uint16_t dt, float scaler) { float output = 0; - float delta_time = (float)dt / 1000; + float delta_time = (float)dt / 1000.0; // Compute proportional component output += error * _kp;