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

Fix observer when sensorless=False. #101

Merged

Conversation

saarela
Copy link
Contributor

@saarela saarela commented Dec 18, 2023

Fixes a bug in setting the observer gain in control.im._observers.Observer() and control.sm._observers.Observer() when sensorless=False. The assignment self.k2 = 0*self.k1 fails because self.k1 is a callable. This is fixed by setting self.k2 = lambda w_m: 0. self.k2 now always returns zero.

@mhinkkan mhinkkan merged commit aa9436a into Aalto-Electric-Drives:main Dec 20, 2023
1 check failed
@mhinkkan
Copy link
Member

Many thanks for the PRs!

@all-contributors please add @saarela for bug

Copy link
Contributor

@mhinkkan

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @saarela! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants