Commit 6f6a63d1 authored by root's avatar root Committed by Alessio Igor Bogani
Browse files

updated maximum current setpoint

parent 5db3738f
......@@ -251,11 +251,11 @@ void Compensator(float SP, float Iout) // PWM frequency 100kHz, control loop 50
tempSP = Imin;
//global limiter
if(tempSP > 1) // era 25
tempSP = 1;
if(tempSP > 1.25) // era 25
tempSP = 1.25;
else // aggiunto 17/5
if(tempSP < -1) // era -25
tempSP = -1;
if(tempSP < -1.25) // era -25
tempSP = -1.25;
// Kp, Ki coefficients have scaling factor embedded for translation from regulator to actuator
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment