Browse Source

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

mission-4.1.18
jasonshort 14 years ago
parent
commit
2ac2faf7a7
  1. 2
      libraries/PID/PID.cpp

2
libraries/PID/PID.cpp

@ -18,7 +18,7 @@ long @@ -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;

Loading…
Cancel
Save