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

Update the Description of the estimator_status Message #8346

Merged
merged 3 commits into from
Dec 11, 2017

Conversation

acfloria
Copy link
Member

Update the description of the estimator_status message based on the definitions in the ekf2 library.

priseborough
priseborough previously approved these changes Nov 23, 2017
uint16 GPS_CHECK_FAIL_MAX_VERT_DRIFT = 6 # 6 : maximum allowed vertical position drift fail
uint16 GPS_CHECK_FAIL_MAX_HORZ_SPD_ERR = 7 # 7 : maximum allowed horizontal velocity discrepancy fail
uint16 GPS_CHECK_FAIL_MAX_VERT_SPD_ERR = 8 # 8 : maximum allowed vertical velocity discrepancy fail
uint16 GPS_CHECK_FAIL_GPS_FIX = 0 # 0 : insufficient fix type (no 3D solution)
Copy link
Member

Choose a reason for hiding this comment

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

This is a fix for a bug that has been present for a long time (PX4/PX4-ECL@466a104534e5b687e26cf8a). It affects the preflight checks: instead of GPS_CHECK_FAIL_GPS_FIX (due to the wrong indexes), now GPS_CHECK_FAIL_MAX_VERT_ERR is checked. @priseborough please check that this is the intended behavior.

@@ -41,6 +42,9 @@ uint32 control_mode_flags # Bitmask to indicate EKF logic state
# 14 - true when height data from external vision measurements is being fused
# 15 - true when synthetic sideslip measurements are being fused
# 16 - true when only the magnetic field states are updated by the magnetometer
# 17 - true when the vehicle is operating as a fixed wing vehicle
# 18 - true when the magnetomer has been declared faulty and is no longer being used
# 19 - true when airspedd measurements are being fused
Copy link
Member

Choose a reason for hiding this comment

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

typo airspeed

Copy link
Member Author

Choose a reason for hiding this comment

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

changed

dagar
dagar previously approved these changes Dec 6, 2017
Copy link
Member

@dagar dagar left a comment

Choose a reason for hiding this comment

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

Looks good to me.
@priseborough could you give it another pass?

uint16 GPS_CHECK_FAIL_MAX_SPD_ERR = 5 # 5 : maximum allowed speed error fail
uint16 GPS_CHECK_FAIL_MAX_HORZ_DRIFT = 6 # 6 : maximum allowed horizontal position drift fail
uint16 GPS_CHECK_FAIL_MAX_VERT_DRIFT = 7 # 7 : maximum allowed vertical position drift fail
uint16 GPS_CHECK_FAIL_MAX_HORZ_SPD_ERR = 8 # 8 : maximum allowed horizontal velocity discrepancy fail
Copy link
Contributor

@priseborough priseborough Dec 6, 2017

Choose a reason for hiding this comment

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

This is a horizontal speed check requiring stationary vehicle, not a horizontal velocity discrepancy check. See https://github.com/PX4/ecl/blob/master/EKF/common.h#L406

Change description to 'maximum allowed horizontal speed fail - requires stationary vehicle'

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

uint16 GPS_CHECK_FAIL_MAX_VERT_ERR = 4 # 4 : maximum allowed vertical position error fail
uint16 GPS_CHECK_FAIL_MAX_SPD_ERR = 5 # 5 : maximum allowed speed error fail
uint16 GPS_CHECK_FAIL_MAX_HORZ_DRIFT = 6 # 6 : maximum allowed horizontal position drift fail
uint16 GPS_CHECK_FAIL_MAX_VERT_DRIFT = 7 # 7 : maximum allowed vertical position drift fail
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to 'maximum allowed vertical position drift fail - requires stationary vehicle'

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

uint16 GPS_CHECK_FAIL_MAX_HORZ_ERR = 3 # 3 : maximum allowed horizontal position error fail
uint16 GPS_CHECK_FAIL_MAX_VERT_ERR = 4 # 4 : maximum allowed vertical position error fail
uint16 GPS_CHECK_FAIL_MAX_SPD_ERR = 5 # 5 : maximum allowed speed error fail
uint16 GPS_CHECK_FAIL_MAX_HORZ_DRIFT = 6 # 6 : maximum allowed horizontal position drift fail
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to 'maximum allowed horizontal position drift fail - requires stationary vehicle'

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@dagar dagar merged commit 87646c4 into PX4:master Dec 11, 2017
@acfloria acfloria deleted the fix/estimator_status_message branch December 18, 2017 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants