Closed pglr closed 10 months ago
inside the common/base_classes/CurrentSense.cpp there was an error with the if-else statement for both getCurrent methods. This leads to a very noisy DQ current if only two phase currents are measured. Either a&b or c&b lead to this issue:
after the FIX OR using a&c:
I think you and Candas have found an important bug. Thanks very much for this!
For your information this also saves me 10us loopfoc duration on STM32F1 😍
inside the common/base_classes/CurrentSense.cpp there was an error with the if-else statement for both getCurrent methods. This leads to a very noisy DQ current if only two phase currents are measured. Either a&b or c&b lead to this issue:
after the FIX OR using a&c: