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

VTOL: Pusher assist: add configuration for enabling it in LAND /disable below some altitude #14706

Merged
merged 5 commits into from
Apr 28, 2020

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Apr 19, 2020

Enables the pusher assist feature also in landing mode.

Adds new parameter VT_FWD_TRUST_EN to set when pusher assist should be active (e.g. turn off if below MPC_ALT_LAND1).

Describe problem solved by this pull request
This PR solves two current limitations:

  • the pusher assist (resp. tilt forward for tiltrotor VTOL) feature currently is disabled in LAND mode (to increase safety in case the pusher/puller doesn't have enough ground clearance. This is usually bad if landing in high head winds, as then the vehicle needs to tilt forward to fight it.
  • if the pusher/puller of a VTOL doesn't have enough ground clearance and the user lands in position or altitude mode the propeller can touch the ground

Describe your solution
Add new parameter to set when pusher assist should be active:
-completely disabled (default)
-enabled in pos, alt and auto mode (except LAND)
-enabled in pos, alt and auto mode if above MPC_LAND_ALT1
-enabled in pos, alt and auto mode if above MPC_LAND_ALT2
-enabled in pos, alt and auto mode

Test data / coverage
SITL and flight tested.

@sfuhrer sfuhrer added the Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! label Apr 19, 2020
@sfuhrer sfuhrer requested a review from RomanBapst April 19, 2020 16:57
@sfuhrer sfuhrer self-assigned this Apr 19, 2020
@sfuhrer sfuhrer changed the title Pr enable pusherassist landing master VTOL: Pusher assist: add configuration for enabling it in LAND /disable below some altitude Apr 19, 2020
@hamishwillee
Copy link
Contributor

@sfuhrer Do you think you could add a docs PR for this - ie perhaps update http://docs.px4.io/master/en/flight_modes/land.html#vtol to explain how land mode works/has changed by this?

@sfuhrer sfuhrer force-pushed the pr-enable-pusherassist-landing-master branch from 879a739 to a9d1ae5 Compare April 22, 2020 13:47
@sfuhrer
Copy link
Contributor Author

sfuhrer commented Apr 22, 2020

@sfuhrer Do you think you could add a docs PR for this - ie perhaps update http://docs.px4.io/master/en/flight_modes/land.html#vtol to explain how land mode works/has changed by this?

@hamishwillee yes I can do that once this is in. We should also document the pusher assist somewhere, don't think it is.

sfuhrer added 5 commits April 22, 2020 20:54
…assist in LAND mode

Depending on the setting of this param, the pusher assist is:
-completely disabled
-enabled in pos, alt and auto mode (except LAND)
-enabled in pos, alt and auto mode (except LAND and below MPC_LAND_ALT1
-enabled in pos, alt and auto mode (except LANd and below MPC_LAND_ALT2
-enabled in pos, alt and auto mode
(before it was always disabled in LAND mode)

Signed-off-by: Silvan Fuhrer <[email protected]>
Change possible as now the pusher assist is enabled/disabled by VT_FWD_TRHUST_EN,
 wich by defaulot is 0 (disabled pusher assist)

Signed-off-by: Silvan Fuhrer <[email protected]>
@sfuhrer sfuhrer force-pushed the pr-enable-pusherassist-landing-master branch from a9d1ae5 to f41ac0e Compare April 22, 2020 18:56
// Altitude above ground is distance sensor altitude if available, otherwise local z-position
float dist_to_ground = -_local_pos->z;

if (_local_pos->dist_bottom_valid) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RomanBapst I assume dist_bottom_valid is only true when you have a distance sensor connected? How come then that it still has a value even without one, shouldn't it then be NAN?

@hamishwillee
Copy link
Contributor

hamishwillee commented Apr 22, 2020

yes I can do that once this is in. We should also document the pusher assist somewhere, don't think it is.

Awesome. Yes, pusher-assist docs would be great too. In general any feature that isn't documented is just wasted.

@sfuhrer sfuhrer merged commit f78847b into master Apr 28, 2020
@sfuhrer sfuhrer deleted the pr-enable-pusherassist-landing-master branch April 28, 2020 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants