mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:23:35 +08:00
Significantly reduce stack size needed for calibration in commander
This commit is contained in:
@@ -447,13 +447,13 @@ calibrate_return calibrate_from_orientation(orb_advert_t *mavlink_log_pub,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* inform user which orientations are still needed */
|
/* inform user which orientations are still needed */
|
||||||
char pendingStr[256];
|
char pendingStr[80];
|
||||||
pendingStr[0] = 0;
|
pendingStr[0] = 0;
|
||||||
|
|
||||||
for (unsigned int cur_orientation=0; cur_orientation<detect_orientation_side_count; cur_orientation++) {
|
for (unsigned int cur_orientation=0; cur_orientation<detect_orientation_side_count; cur_orientation++) {
|
||||||
if (!side_data_collected[cur_orientation]) {
|
if (!side_data_collected[cur_orientation]) {
|
||||||
strcat(pendingStr, " ");
|
strncat(pendingStr, " ", sizeof(pendingStr));
|
||||||
strcat(pendingStr, detect_orientation_str((enum detect_orientation_return)cur_orientation));
|
strncat(pendingStr, detect_orientation_str((enum detect_orientation_return)cur_orientation), sizeof(pendingStr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
calibration_log_info(mavlink_log_pub, "[cal] pending:%s", pendingStr);
|
calibration_log_info(mavlink_log_pub, "[cal] pending:%s", pendingStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user