mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
git-svn-id: https://arducopter.googlecode.com/svn/trunk@979 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a64c5ef782
commit
2ac2faf7a7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user