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

commander calibration routines initialize everything #13052

Closed
wants to merge 5 commits into from

Conversation

dagar
Copy link
Member

@dagar dagar commented Sep 29, 2019

Most of this is just being paranoid and even borderline unnecessary, but there were a couple cases of possibly uninitialized variables being used (tc_locked for example).

@dagar dagar force-pushed the pr-calibration_cleanup_minor branch 2 times, most recently from 1c0f703 to d70325e Compare September 29, 2019 19:06
@dagar dagar force-pushed the pr-calibration_cleanup_minor branch from d70325e to c3c1e21 Compare September 29, 2019 19:20
@dagar
Copy link
Member Author

dagar commented Sep 29, 2019

TODO: recalibrate everything on v5 with stackcheck

julianoes
julianoes previously approved these changes Oct 1, 2019
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

I like it.

@@ -368,9 +368,9 @@ int do_accel_calibration(orb_advert_t *mavlink_log_pub)

/* update the _SCL_ terms to include the scale factor */
for (unsigned axis_index = 0; axis_index < 3; axis_index++) {
val = 1.0f;
float val = 1.0f;
(void)sprintf(str, "TC_A%u_SCL_%u", sensor_correction.accel_mapping[uorb_index], axis_index);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use snprintf?

Co-Authored-By: Julian Oes <julian@oes.ch>
julianoes
julianoes previously approved these changes Oct 1, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@dagar dagar force-pushed the pr-calibration_cleanup_minor branch from b04e60b to 91eb7ef Compare December 30, 2019 21:29
@dagar dagar closed this Jan 22, 2020
@LorenzMeier LorenzMeier deleted the pr-calibration_cleanup_minor branch January 18, 2021 14:35
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.

2 participants