diff --git a/firmware/hw_layer/sensors/CJ125.cpp b/firmware/hw_layer/sensors/CJ125.cpp index b0f7e510e6..a6eac383ea 100644 --- a/firmware/hw_layer/sensors/CJ125.cpp +++ b/firmware/hw_layer/sensors/CJ125.cpp @@ -452,6 +452,10 @@ static msg_t cjThread(void) case CJ125_READY: // use PID for normal heater control if (nowNt - prevNt >= CJ125_HEATER_CONTROL_PERIOD) { + /* PID doesn't care about the target or the input, it knows only the + * error value as the difference of (target - input). and if we swap them we'll just get a sign inversion. If target=vUrCal, and input=vUr, then error=vUrCal-vUr, i.e. if vUr