Skip to content
Snippets Groups Projects
Commit b8430dc4 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

pidcontroller: fix update time

parent 0b390e75
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ void PIDController::update(double deltaSec, double measuredValue, double targetV
ARMARX_DEBUG << deactivateSpam(0.5) << " error: " << error << " cV: " << (controlValue) << " i: " << (Ki * integral) << " d: " << (Kd * derivative) << " dt: " << deltaSec;
previousError = error;
lastUpdateTime += IceUtil::Time::seconds(deltaSec);
lastUpdateTime += IceUtil::Time::secondsDouble(deltaSec);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment