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 transition fail on tailsitter #15352

Merged
merged 1 commit into from Jul 21, 2020
Merged

Fix transition fail on tailsitter #15352

merged 1 commit into from Jul 21, 2020

Conversation

xdwgood
Copy link
Contributor

@xdwgood xdwgood commented Jul 16, 2020

Describe problem solved by this pull request
To fix: #15037

Describe your solution
ensure input quaternions are exactly normalized because acosf(1.00001) == NaN

Test data / coverage
Test tomorrow

Additional context
@sfuhrer Is my solution the best? Or should we start with acosf functions?

@xdwgood xdwgood changed the title if this calculation is invalid, we allowed to recalculate the start tilt again Fix transmission fail on tailsitter Jul 16, 2020
@dagar dagar requested a review from sfuhrer July 16, 2020 19:32
@dagar dagar added bug Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! labels Jul 16, 2020
@dagar dagar changed the title Fix transmission fail on tailsitter Fix transition fail on tailsitter Jul 16, 2020
@xdwgood
Copy link
Contributor Author

xdwgood commented Jul 17, 2020

Ground test log : https://logs.px4.io/plot_app?log=fe37c1fa-2c53-48d1-8efa-7487e60b44a6

@sfuhrer I conducted at least 50 tests on the ground and the problem did not appear.

Good to merge? 😃

@sfuhrer
Copy link
Contributor

sfuhrer commented Jul 17, 2020

Ground test log : https://logs.px4.io/plot_app?log=fe37c1fa-2c53-48d1-8efa-7487e60b44a6

@sfuhrer I conducted at least 50 tests on the ground and the problem did not appear.

Good to merge? smiley

Cool! Yes I don't see a reason why not 👍

Copy link
Contributor

@sfuhrer sfuhrer left a comment

Choose a reason for hiding this comment

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

@xdwgood the format checks are failing, could you run a make format and push again?

@xdwgood
Copy link
Contributor Author

xdwgood commented Jul 17, 2020

@sfuhrer done here : 7cd4bfd 😃

@@ -262,7 +262,7 @@ void VehicleIMU::Run()

// rotate sensor clip counts into vehicle body frame
const Vector3f clipping{_accel_calibration.getBoardRotation() *
Vector3f{(float)accel.clip_counter[0], (float)accel.clip_counter[1], (float)accel.clip_counter[2]}};
Vector3f{(float)accel.clip_counter[0], (float)accel.clip_counter[1], (float)accel.clip_counter[2]}};
Copy link
Contributor

Choose a reason for hiding this comment

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

@xdwgood it still complains, because of this change here. It's a make format misconfiguration, I actually also have it on my setup. So just revert the changes in here, and see that your PR only touches tailsitter.cpp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to restore, but when I commit it, it showed that the check failed... Can you help me submit a change? Thank you

@xdwgood xdwgood requested a review from sfuhrer July 20, 2020 05:34
@xdwgood
Copy link
Contributor Author

xdwgood commented Jul 20, 2020

@sfuhrer thanks for your help ❤️ 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tailsitter vtol frnot/back transmission failed (no pitch set value is generated)
3 participants