电机下压

This commit is contained in:
ranchuan
2023-06-25 18:04:09 +08:00
parent 7619a0804a
commit cfda1c461b
11 changed files with 497 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ sig_thread thread_creat(int pro)
slot_run_def *run=calloc(1,sizeof(slot_run_def));
run->run=1;
sprintf(name,"sig_mq#%d",count);
run->mb=rt_mq_create(name,(sizeof(slot_msg_def)+sizeof(uint32_t)*8),50,RT_IPC_FLAG_FIFO);
run->mb=rt_mq_create(name,(sizeof(slot_msg_def)+sizeof(uint32_t)*8),100,RT_IPC_FLAG_FIFO);
sprintf(name,"sig_t#%d",count);
rt_thread_t rt_t=rt_thread_create(name,slot_run,run,2048,pro,20);
rt_thread_startup(rt_t);