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