Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: FIX 2 phase measurements resulting in bad DQ currents #339

Merged
merged 1 commit into from
Nov 13, 2023

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
16 checks passed
@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