-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add test harness to common supervisor, fix bugs, restore C code calls #78
Conversation
Implement working test harness and update other models add condition to test Switch to asserts commit change
sup improve test model with checks on bumpless switches Clean up checks
Update test with motor upd Add pmsm to common and make it work with D-axis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work @mfussi66 🚀
Just a minor request:
- Would you be willing to refactor the
common/tests
dir with a further level of subdirs in order to specialize the meaning? For example, the modelpmsm
could be located undercommon/tests/motor
; similar subdirs should host the other tests. Avoiding using one shared big bucket will enable us to be a bit cleaner.
Remember to update the project to include the new tree. |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR creates a test harness model embedded in the new
Supervisor.slx
, located in theCommon
project.The model is as follows:
On the left we have a test sequence object, and on the right a test assessment block. The first sets the input variables, while the other verifies them according to internal rules.
This harness model allowed to discover a bug caused by the refactor in the Input Dispatcher. See the issue related to this PR for details: #72
Finally, custom code calls are restored.