aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-16 00:08:56 +0100
committerAndreas Grois <andi@grois.info>2018-03-16 00:08:56 +0100
commitf9c0d1f4cb510a63b3dd2397a415ab20232ec38d (patch)
treea75366d02ea95e7f9672fb69c87783d889cff9fb
parentbb9b7d23a1ca8e2afa8c8636d7312adc700d9a34 (diff)
Tweak PID a bit
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index 88f9c9b..2a5f98a 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -149,7 +149,7 @@ int main(int argc, char * argv[])
uint32_t iterationsPerFrame = 1;
- Helpers::PIDController<float, uint32_t> pid{0.0f,0.0f,1e-6f};
+ Helpers::PIDController<float, uint32_t> pid{0.0f,0.0f,1e-8f};
const uint32_t targetFrameDuration{1000000/settings.targetFrameRate};
/* Loop until the user closes the window */
@@ -196,7 +196,7 @@ int main(int argc, char * argv[])
const auto pidOutput{pid.Update(frameDuration,error)};
iterationsPerFrame = std::max(1,static_cast<int>(pidOutput));
- //std::cout << iterationsPerFrame << " " << pidOutput << std::endl;
+ std::cout << iterationsPerFrame << " " << pidOutput << std::endl;
}
}