From 9690d8f6116986f5b2f45b254544bbc0a7000e26 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 13 Sep 2023 15:50:46 +0800 Subject: [PATCH] locking parameters --- main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 3c22add..fa548c6 100644 --- a/main.cpp +++ b/main.cpp @@ -52,7 +52,7 @@ static void tec_thread() else return 1; }); - std::this_thread::sleep_for(100ms); + std::this_thread::sleep_for(15ms); } } @@ -307,9 +307,9 @@ int main(int argc, char* argv[]) bool exit = false; bool update_wf = true; - float freq_setpoint_local = 0.0f; - float tec_bias_local = 0.02f; - float tec_p_local = 0.001f; + float freq_setpoint_local = 25.8f; + float tec_bias_local = 0.105f; + float tec_p_local = -0.022f; while(!exit && !glfwWindowShouldClose(window)) { glfwPollEvents(); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); @@ -354,7 +354,7 @@ int main(int argc, char* argv[]) ImGui::SliderFloat("TEC P", &tec_p_local, -1.0f, 1.0f); freq_setpoint = freq_setpoint_local; tec_bias = tec_bias_local; - tec_p = 0.05f*tec_p_local; + tec_p = 0.01f*tec_p_local; if(ImGui::Button("Exit")) exit = true; ImGui::Text("Frames processed: %d", (int)frames_processed);