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

AttitudeControlTest: add first controller convergence test #13102

Merged
merged 3 commits into from
Oct 14, 2019

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Oct 6, 2019

Describe problem solved by the proposed pull request
Since #11573 we have convenient unit test support in the Firmware and the attitude controller actually had the first example test. But the test was not covering interesting cases so far.

Test data / coverage
Unit tests pass.

Describe your preferred solution
The test now runs the AttitudeControl class against all sorts of start and setpoint attitude combinations and checks if the error constantly gets smaller and converges to the setpoint.

@MaEtUgR MaEtUgR added the Tests (unit / functional) 🧪 Testing framework label Oct 6, 2019
@MaEtUgR MaEtUgR requested a review from bresch October 6, 2019 16:40
@MaEtUgR MaEtUgR self-assigned this Oct 6, 2019
@MaEtUgR MaEtUgR marked this pull request as ready for review October 6, 2019 17:02
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just a bit picky on naming :D

Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good

@MaEtUgR MaEtUgR merged commit bb91db2 into master Oct 14, 2019
@MaEtUgR MaEtUgR deleted the attitude-test branch October 14, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants