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

Pre-flight check: add parameter to en/disable mag field strength check #13766

Merged
merged 4 commits into from
Dec 28, 2019

Conversation

bresch
Copy link
Member

@bresch bresch commented Dec 20, 2019

This new parameter: COM_ARM_MAG_STR defines if the pre_flt_fail_mag_field_disturbed flag sent by the estimator should prevent arming or not.

@bresch bresch added this to the Release v1.11.0 milestone Dec 20, 2019
@bresch bresch requested a review from MaEtUgR December 20, 2019 08:51
@bresch bresch self-assigned this Dec 20, 2019
Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

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

just nit-picking for readability

}
}

success = false;
goto out;
}

param_get(param_find("COM_ARM_MAG_STR"), &is_mag_strength_check);
Copy link
Member

Choose a reason for hiding this comment

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

I would fill the local variable when it's declared. Ideally here but if you have to declare it earlier because of the **** gotos I would move the param_get() there as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I hope we can get rid of those ugly goto at some point...

@bresch
Copy link
Member Author

bresch commented Dec 25, 2019

@MaEtUgR I addressed your comments, can you review again please?

@dagar dagar merged commit 2261691 into master Dec 28, 2019
@dagar dagar deleted the pr-mag-str-preflt branch December 28, 2019 19:06
@mrpollo mrpollo mentioned this pull request Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants