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

Pr move land detector mavlink to airspeed validated #13710

Merged
merged 7 commits into from
Dec 28, 2019

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Dec 9, 2019

Alternative to #13706, this time with moving the subscription of the FW land detector and mavlink to airspeed_validated.

SITL tested, eg FW mission where in mid-flight the ASPD_STALL is set to 100 to trigger an "airspeed invalid" declaration. The plane then keeps on flying in non-airspeed mode, and after landing the land detector correctly detects the landing. https://review.px4.io/plot_app?log=48c0f65a-35bc-4241-b3ea-5e4a0aef78db

	This e.g. changes the way QGC displays the airspeed in case of an
	airspeed failure (0 instead of the last valid airspeed). It will
	always display the airspeed that's used currently in the control
	modules.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
…airspeed topic

	- the land detector checks further if the airspeed is NAN, in which case
	it sets the airspeed to 0 (min groundspeed, vz  and accel checks still
	have to pass.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@dagar
Copy link
Member

dagar commented Dec 9, 2019

In another PR we should also add something to commander to require that the airspeed selector is alive and well for arming as FW or VTOL.

@dagar dagar requested a review from a team December 10, 2019 14:52
@dagar
Copy link
Member

dagar commented Dec 10, 2019

@PX4/testflights could you give this a try the next time you fly FW or VTOL?

@dannyfpv
Copy link

dannyfpv commented Dec 11, 2019

…ents

	- replaced ternary by conditional
	- set airspeed to 0 if airspeed_validated stops publishing

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer
Copy link
Contributor Author

sfuhrer commented Dec 15, 2019

Thanks for the testflights @dannyfpv !

@dagar I've addressed your comments, see 3rd commit (replaced ternary by conditional and set airspeed to 0 if airspeed_validated stops publishing). Please have a look at that.

@sfuhrer
Copy link
Contributor Author

sfuhrer commented Dec 24, 2019

@dagar is this now good to be merged from your side?

@dagar dagar merged commit 7bb952b into master Dec 28, 2019
@dagar dagar deleted the pr-move_land_detector_mavlink_to_airspeed_validated branch December 28, 2019 17:32
Jaeyoung-Lim pushed a commit that referenced this pull request Jan 15, 2020
* Mavlink: subscribe to airspeed_validated instead of airspeed topic

	This e.g. changes the way QGC displays the airspeed in case of an
	airspeed failure (0 instead of the last valid airspeed). It will
	always display the airspeed that's used currently in the control
	modules.

* FW land detector: move to subscribe to airspeed_validated instead of airspeed topic
	- the land detector checks further if the airspeed is NAN, in which case
	it sets the airspeed to 0 (min groundspeed, vz  and accel checks still
	have to pass.

* Fixed-wing land detector use airspeed_vaidated: addressed review comments
	- replaced ternary by conditional
	- set airspeed to 0 if airspeed_validated stops publishing

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
BazookaJoe1900 pushed a commit that referenced this pull request Feb 3, 2020
* Mavlink: subscribe to airspeed_validated instead of airspeed topic

	This e.g. changes the way QGC displays the airspeed in case of an
	airspeed failure (0 instead of the last valid airspeed). It will
	always display the airspeed that's used currently in the control
	modules.

* FW land detector: move to subscribe to airspeed_validated instead of airspeed topic
	- the land detector checks further if the airspeed is NAN, in which case
	it sets the airspeed to 0 (min groundspeed, vz  and accel checks still
	have to pass.

* Fixed-wing land detector use airspeed_vaidated: addressed review comments
	- replaced ternary by conditional
	- set airspeed to 0 if airspeed_validated stops publishing

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants