mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 13:23:35 +08:00
MAVLink: Use less RAM
This commit is contained in:
@@ -1621,7 +1621,7 @@ Mavlink::start(int argc, char *argv[])
|
|||||||
task_spawn_cmd(buf,
|
task_spawn_cmd(buf,
|
||||||
SCHED_DEFAULT,
|
SCHED_DEFAULT,
|
||||||
SCHED_PRIORITY_DEFAULT,
|
SCHED_PRIORITY_DEFAULT,
|
||||||
2800,
|
2700,
|
||||||
(main_t)&Mavlink::start_helper,
|
(main_t)&Mavlink::start_helper,
|
||||||
(char * const *)argv);
|
(char * const *)argv);
|
||||||
|
|
||||||
|
|||||||
@@ -1549,7 +1549,7 @@ MavlinkReceiver::receive_start(Mavlink *parent)
|
|||||||
param.sched_priority = SCHED_PRIORITY_MAX - 80;
|
param.sched_priority = SCHED_PRIORITY_MAX - 80;
|
||||||
(void)pthread_attr_setschedparam(&receiveloop_attr, ¶m);
|
(void)pthread_attr_setschedparam(&receiveloop_attr, ¶m);
|
||||||
|
|
||||||
pthread_attr_setstacksize(&receiveloop_attr, 2900);
|
pthread_attr_setstacksize(&receiveloop_attr, 2100);
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
pthread_create(&thread, &receiveloop_attr, MavlinkReceiver::start_helper, (void *)parent);
|
pthread_create(&thread, &receiveloop_attr, MavlinkReceiver::start_helper, (void *)parent);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user