locking parameters

This commit is contained in:
Sebastien Bourdeauducq 2023-09-13 15:50:46 +08:00
parent 1e84520a5f
commit 9690d8f611

View File

@ -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);