From 399868339699853999af4866e79b67eea0b3e1c8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 2 May 2008 10:51:20 +0200 Subject: [PATCH] robofsm: All thread priorities moved to one place --- src/robofsm/eb2008/robot_eb2008.c | 6 ------ src/robofsm/eb2008/robot_eb2008.h | 8 +++++++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/robofsm/eb2008/robot_eb2008.c b/src/robofsm/eb2008/robot_eb2008.c index 4b3457f5..e1c010c3 100644 --- a/src/robofsm/eb2008/robot_eb2008.c +++ b/src/robofsm/eb2008/robot_eb2008.c @@ -22,12 +22,6 @@ #include "map_handling.h" -#define THREAD_PRIO_MOTION 30 -#define THREAD_PRIO_MAIN 25 -#define THREAD_PRIO_LOC 20 -#define THREAD_PRIO_DISP 15 -#define THREAD_PRIO_JOY 10 - static int thread_priorities[] = { [FSM_ID_MAIN] = THREAD_PRIO_MAIN, [FSM_ID_MOTION] = THREAD_PRIO_MOTION, diff --git a/src/robofsm/eb2008/robot_eb2008.h b/src/robofsm/eb2008/robot_eb2008.h index 37fa04fa..a45549e8 100644 --- a/src/robofsm/eb2008/robot_eb2008.h +++ b/src/robofsm/eb2008/robot_eb2008.h @@ -205,6 +205,12 @@ FSM_STATE_FULL_DECL(disp, init); /*Thread priorities*/ #define TRAJ_FOLLOWER_PRIO 255 /* As high as possible */ -#define OBST_FORGETING_PRIO 10 /* Priority of the thread for forgeting detected obstacles. */ +#define THREAD_PRIO_MOTION 30 +#define THREAD_PRIO_MAIN 25 +#define THREAD_PRIO_LOC 20 +#define OBST_FORGETING_PRIO 17 /* Priority of the thread for forgeting detected obstacles. */ +#define THREAD_PRIO_DISP 15 +#define THREAD_PRIO_JOY 10 + #endif /* ROBOT_EB2008_H */ -- 2.39.2