mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 06:43:34 +08:00
Merge pull request #3225 from PX4/master_commander_stack_size
BUGFIX:Take 2! CLI "commander calibrate acel" resulted in hardfault
This commit is contained in:
@@ -301,7 +301,7 @@ int commander_main(int argc, char *argv[])
|
|||||||
daemon_task = px4_task_spawn_cmd("commander",
|
daemon_task = px4_task_spawn_cmd("commander",
|
||||||
SCHED_DEFAULT,
|
SCHED_DEFAULT,
|
||||||
SCHED_PRIORITY_MAX - 40,
|
SCHED_PRIORITY_MAX - 40,
|
||||||
3500,
|
3600,
|
||||||
commander_thread_main,
|
commander_thread_main,
|
||||||
(char * const *)&argv[0]);
|
(char * const *)&argv[0]);
|
||||||
|
|
||||||
@@ -1304,7 +1304,7 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
/* initialize low priority thread */
|
/* initialize low priority thread */
|
||||||
pthread_attr_t commander_low_prio_attr;
|
pthread_attr_t commander_low_prio_attr;
|
||||||
pthread_attr_init(&commander_low_prio_attr);
|
pthread_attr_init(&commander_low_prio_attr);
|
||||||
pthread_attr_setstacksize(&commander_low_prio_attr, 2600);
|
pthread_attr_setstacksize(&commander_low_prio_attr, 2880);
|
||||||
|
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
(void)pthread_attr_getschedparam(&commander_low_prio_attr, ¶m);
|
(void)pthread_attr_getschedparam(&commander_low_prio_attr, ¶m);
|
||||||
|
|||||||
Reference in New Issue
Block a user