-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Conversation
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? 😃 |
Cool! Yes I don't see a reason why not 👍 |
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.
@xdwgood the format checks are failing, could you run a make format
and push again?
@@ -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]}}; |
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.
@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.
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.
I tried to restore, but when I commit it, it showed that the check failed... Can you help me submit a change? Thank you
@sfuhrer thanks for your help ❤️ 😃 |
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?