MAVLink: Use less RAM

This commit is contained in:
Lorenz Meier 2015-02-27 11:23:44 +01:00
parent da5b06a5df
commit 0ebbb5f533
2 changed files with 2 additions and 2 deletions

View File

@ -1621,7 +1621,7 @@ Mavlink::start(int argc, char *argv[])
task_spawn_cmd(buf,
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
2800,
2700,
(main_t)&Mavlink::start_helper,
(char * const *)argv);

View File

@ -1549,7 +1549,7 @@ MavlinkReceiver::receive_start(Mavlink *parent)
param.sched_priority = SCHED_PRIORITY_MAX - 80;
(void)pthread_attr_setschedparam(&receiveloop_attr, &param);
pthread_attr_setstacksize(&receiveloop_attr, 2900);
pthread_attr_setstacksize(&receiveloop_attr, 2100);
pthread_t thread;
pthread_create(&thread, &receiveloop_attr, MavlinkReceiver::start_helper, (void *)parent);