-
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
FwPositionControl: don't do takeoff help for vtol #10048
Conversation
If anybody has been wondering why in the gazebo standard vtol simulation the vehicle climbed like crazy after a front transition just to descend again later... |
This helper function is only used in altitude and position control modes, although I don't see why we aren't using it everywhere. |
fad12c3
to
0ec634e
Compare
master (vtol standard CI test)
PR (vtol standard CI test) |
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.
On second thought I don't think we should change do_takeoff_help() for VTOL (or at least not specifically for VTOL). All it's doing is forcing a climb in altitude or position control modes if you're close to the ground after takeoff.
@dagar I think I'm already a step ahead. I was implementing front transition using TECS and discovered this behavior. With current master you don't see this because I assume TECS is only activated after transition. |
@RomanBapst Why not just setting |
0ec634e
to
7f80a0f
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. |
@dagar I think this should be fixed for the release because as is it's broken and it causes the plane to increase altitude after transition. Since the FW position controller does not run during hover mode the ground reference altitude is not set correctly, it's actually set as soon as the vehicle goes into transition mode. Let me know what you think. |
Alright, can we start by getting it rebased? |
@dagar No, if we agree how to do it I will quickly do a PR. I just reopened this as a placeholder. |
- takeoff help is used for fixed wings, it increases the altitude setpoint after a launch. A vtol does not need this as it's already sufficiently high up in the air. Signed-off-by: Roman <bapstroman@gmail.com>
7f80a0f
to
eb70c23
Compare
@dagar We will test this in the afternoon. |
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.
Makes sense to me.
@PX4/testflights Please test on the deltaquad. The vehicle should not climb noticeably after the front transition (assuming you don't command it to climb). |
I've given this a quick test in SITL to verify the behavior. @PX4/testflights please still test this as a VTOL sanity check for the release. |
after a launch. A vtol does not need this as it's already sufficiently
high up in the air.
Signed-off-by: Roman bapstroman@gmail.com