-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Adding tiltrotor airframe for gazebo simulation #24028
Conversation
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 0 byte (0 %)]
px4_fmu-v6x [Total VM Diff: 16 byte (0 %)]
Updated: 2024-12-19T08:45:27 |
8d2185c
to
827ed69
Compare
c8bd4a4
to
d223a8a
Compare
d223a8a
to
08494be
Compare
bf264cf
to
66ab707
Compare
827ed69
to
81fc89a
Compare
b561a74
to
4ec9990
Compare
81fc89a
to
f08beb8
Compare
4ec9990
to
d47d5f8
Compare
28a3c8b
to
1ab426e
Compare
d47d5f8
to
ab93cd7
Compare
0c60b0b
to
642f09f
Compare
33d2023
to
94da813
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 good, I assume this is what jaey meant with the parameter based implementation,
left just a few minor improvements, to avoid issues with other airframe implementations if accessing out of range indices.
639b005
to
6b83045
Compare
6b83045
to
3b7122e
Compare
3b7122e
to
a58ad4f
Compare
935ac4b
to
1d1bdad
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 reasonable to me, as clean as we can make it without the ability to send floats, so LGTM!
@Perrrewi Could you resolve the conflict such that we can merge it? |
1d1bdad
to
2466f49
Compare
Solved Problem
Moving the tiltrotor from gazebo classic to gz sim as gazebo garden will be depreciated by the end of nov 24
Solution
Adding an airframe and fixed the bug in gz-bridge. PX4 sends an output value from 0 to 1000 of the servo and the GZbridge normalized it to be within +-1. The problem was that gazebo needs a servo input of angles in radian which meant the currently servos only works in the range +-1 rad.
Test coverage
Tested with QGC
Context
Test: Toggling the actuator testing slider with max output value 1000 while gazebo angle limitations were set to 90 deg
Before updating GZMixingInterfaceServo.cpp:
After updating GZMixingInterfaceServo.cpp: