You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Measured Current A/B not swapped in alignBLDCDriver() #556
heads up @runger1101001, the same error exists in line 300 of the same file, where A and B are being switched due to _NC on phase B:
else{ //phase A is not measured so put the _NC to the phase A if(_isset(pinA) && !_isset(pinB)){ SIMPLEFOC_DEBUG("CS: Switch A-(B)NC"); _swap(pinA, pinB); _swap(offset_ia, offset_ib); _swap(gain_a, gain_b); _swap(c_a.b, c_a.b); phases_switched = true; // signal that pins have been switched
Arduino-FOC/src/common/base_classes/CurrentSense.cpp
Line 270 in 7f9c45f
I found a typo where the measured current from phase B is swapped with itself instead of the current for phase A