In current control, it will compensate the current ki if temp compensate is enabled. Just as followed,
if (conf_now->foc_temp_comp && t > -30.0) {
ki += ki * 0.00386 * (t - conf_now->foc_temp_comp_base_temp);
}
Does the temp compensation really makes sense, and what is the magic num 0.00386 is?
I googled and noticed that the temperature coefficient of Copper and Aluminium are very close to this magic number, right?
BR,
Alex