-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Remove euler angles from attitude setpoint #23482
Conversation
64f99e9
to
614f6bf
Compare
528b53b
to
103e0ce
Compare
cf1e0c5
to
f35d43d
Compare
f35d43d
to
35a5dd8
Compare
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.
Let's do it, this is long overdue.
ba1246a
to
527a59b
Compare
Not sure if the CI failures are relevent. SITL tests say that the tests passed, but still fails anyway. |
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.
Nice
No they're unrelated, see #23457 |
527a59b
to
94b2304
Compare
@bresch Sorry, I had a format error during the rebase |
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.
This was really long overdue, thanks a lot!
I just love my consts
too much - would you mind going through and const everything you can? I stopped making comments after a while, there's lots of them.
ca381e2
to
7d9dbc7
Compare
@sfuhrer Addressed your comments |
This commit removes the usage of euler angles in the vehicle_attitude_setpoint messages
7d9dbc7
to
96cd426
Compare
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.
Looks all clean now, thanks!
These got removed with PX4/PX4-Autopilot#23482
These got removed with PX4/PX4-Autopilot#23482
* Remove euler angles from attitude setpoint message * Remove usage of euler angles in attitude setpoint messages This commit removes the usage of euler angles in the vehicle_attitude_setpoint messages * Fix standard vtol
Solved Problem
The
VehicleAttitudeSetpoint
message has two different attitude setpoint fields.a) The desired attitude quaternion
q_d
PX4-Autopilot/msg/VehicleAttitudeSetpoint.msg
Lines 3 to 10 in 75ce550
b) Euler angles roll_body, pitch_body, yaw_body
I think the initial intention was that to use the euler angles for logging, and the quaternions for the controllers. However, this seems to have gotten quite abused, and the fixed wing controllers especially use it as a primary place for storing setpoints.
This has the following problems
_att_sp
is modified everywhere in the code. This makes it hard to grasp where the setpoints are changing and which euler angles are actually sent to the attitude controllerFixes #23481
Solution
Changelog Entry
For release notes:
Test coverage
plane
in SITL