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

DqToAbcActionProcessor calculates advanced angle wrongly #224

Open
XyDrKRulof opened this issue Dec 22, 2023 · 0 comments
Open

DqToAbcActionProcessor calculates advanced angle wrongly #224

XyDrKRulof opened this issue Dec 22, 2023 · 0 comments
Assignees

Comments

@XyDrKRulof
Copy link
Collaborator

XyDrKRulof commented Dec 22, 2023

In the DqToAbcActionProcessor - wrapper class the u_abc voltages are calculated based on the u_dq voltages using an advanced angle. This angle is calculated as follows:

    def _advance_angle(self, state):
        return state[self._angle_index] \
            + self._angle_advance * self._physical_system.tau * state[self._omega_index]

This calculation is wrong. The epsilon is the electrical rotor angle, while the speed omega ist the mechanical speed. The calculation would therefore have to use the electrical speed: state[self._omega_index]*p

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

No branches or pull requests

1 participant