From 3392cecee1fe720a38e16fb1819557c66a268053 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 13 Sep 2023 16:03:54 +0800 Subject: [PATCH] tec_p should only be negative --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e702e32..3172089 100644 --- a/main.cpp +++ b/main.cpp @@ -353,7 +353,7 @@ int main(int argc, char* argv[]) ImGui::Text("TEC current: %.3f mA", (float)tec_current*1000.0f); ImGui::SliderFloat("Setpoint", &freq_setpoint_local, 0.0f, 40.0f); ImGui::SliderFloat("TEC bias", &tec_bias_local, 0.0f, 0.5f); - ImGui::SliderFloat("TEC P", &tec_p_local, -1.0f, 1.0f); + ImGui::SliderFloat("TEC P", &tec_p_local, -1.0f, 0.0f); freq_setpoint = freq_setpoint_local; tec_bias = tec_bias_local; tec_p = 0.01f*tec_p_local;