-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Conversation
1c0f703
to
d70325e
Compare
d70325e
to
c3c1e21
Compare
TODO: recalibrate everything on v5 with stackcheck |
There was a problem hiding this 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); |
There was a problem hiding this comment.
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>
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
b04e60b
to
91eb7ef
Compare
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).