Quadcopter/User/task/user_task.c
2025-10-03 14:32:06 +08:00

36 lines
912 B
C

#include "task\user_task.h"
Task_Runtime_t task_runtime;
const osThreadAttr_t attr_init = {
.name = "Task_Init",
.priority = osPriorityRealtime,
.stack_size = 256 * 4,
};
// USER TASK
const osThreadAttr_t attr_ps2 = {
.name = "ps2",
.priority = osPriorityNormal,
.stack_size = 128 * 4,
};
const osThreadAttr_t attr_test1 = {
.name = "test1",
.priority = osPriorityNormal,
.stack_size = 128 * 4,
};
const osThreadAttr_t attr_atti_esti = {
.name = "atti_esti",
.priority = osPriorityNormal,
.stack_size = 256 * 4,
};
const osThreadAttr_t attr_height_cal = {
.name = "height_cal",
.priority = osPriorityNormal,
.stack_size = 256 * 4,
};
const osThreadAttr_t attr_main_control = {
.name = "main_control",
.priority = osPriorityNormal,
.stack_size = 512 * 4,
};