Skip to content

Conversation

@pglr
Copy link
Contributor

@pglr pglr commented Nov 12, 2023

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:

image

after the FIX OR using a&c:

image

@runger1101001 runger1101001 added the bug Something isn't working label Nov 13, 2023
@runger1101001
Copy link
Member

I think you and Candas have found an important bug. Thanks very much for this!

@runger1101001 runger1101001 merged commit 0caaf03 into simplefoc:dev Nov 13, 2023
@Candas1
Copy link
Collaborator

Candas1 commented Nov 19, 2023

For your information this also saves me 10us loopfoc duration on STM32F1 😍​

@runger1101001 runger1101001 added this to the 2.3.2_Release milestone Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants