forked from cvra/nastya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.h
53 lines (37 loc) · 1.79 KB
/
tasks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ucOS II task priorities & stack sizes
// smaller priority number equals higher priority
// NEVER REUSE SAME PRIORITY FOR TWO TASKS
// in current config: max (lowest priority) is 63
#ifndef TASKS_H
#define TASKS_H
#define INIT_TASK_PRIORITY 1
#define INIT_TASK_STACKSIZE 2048
#define HEARTBEAT_TASK_PRIORITY 60
#define HEARTBEAT_TASK_STACKSIZE 2048
#define PID_CONF_TASK_PRIORITY 20
#define PID_CONF_TASK_STACKSIZE 2048
#define ENCODER_TASK_PRIORITY 2
#define ENCODER_TASK_STACKSIZE 2048
#define IMU_TASK_PRIORITY 3
#define IMU_TASK_STACKSIZE 2048
#define POSITION_INTEGRATION_TASK_PRIORITY 5
#define POSITION_INTEGRATION_TASK_STACKSIZE 2048
#define CONTROL_TASK_PRIORITY 4
#define CONTROL_TASK_STACKSIZE 2048
#define PLOT_TASK_PRIORITY 21
#define PLOT_TASK_STACKSIZE 2048
#define TRACE_TASK_PRIORITY 22
#define TRACE_TASK_STACKSIZE 2048
#define DRIVE_TASK_PRIORITY 19
#define DRIVE_TASK_STACKSIZE 2048
#define MATCH_TASK_PRIORITY 10
#define MATCH_TASK_STACKSIZE 2048
#define DRIVE_WAYPOINT_PRIORITY 11
#define DRIVE_WAYPOINT_STACKSIZE 2048
#define EMERGENCY_STOP_TASK_PRIORITY 9
#define EMERGENCY_STOP_TASK_STACKSIZE 2048
// IP stack
#define TCPIP_THREAD_PRIO 30
#define SLIPIF_THREAD_PRIO 31
#define SNTP_THREAD_PRIO 34
#endif // TASKS_H