mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:51:35 +08:00
flow example: Use smaller stack and correct start logic
This commit is contained in:
@@ -65,6 +65,7 @@
|
|||||||
#include <uORB/topics/optical_flow.h>
|
#include <uORB/topics/optical_flow.h>
|
||||||
#include <uORB/topics/filtered_bottom_flow.h>
|
#include <uORB/topics/filtered_bottom_flow.h>
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
|
#include <systemlib/systemlib.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
#include "flow_position_estimator_params.h"
|
#include "flow_position_estimator_params.h"
|
||||||
@@ -109,9 +110,9 @@ int flow_position_estimator_main(int argc, char *argv[])
|
|||||||
|
|
||||||
thread_should_exit = false;
|
thread_should_exit = false;
|
||||||
daemon_task = task_spawn_cmd("flow_position_estimator",
|
daemon_task = task_spawn_cmd("flow_position_estimator",
|
||||||
SCHED_RR,
|
SCHED_DEFAULT,
|
||||||
SCHED_PRIORITY_MAX - 5,
|
SCHED_PRIORITY_MAX - 5,
|
||||||
4096,
|
4000,
|
||||||
flow_position_estimator_thread_main,
|
flow_position_estimator_thread_main,
|
||||||
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user