Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 3a69d0b

Browse files
committed
update readme
1 parent a302d74 commit 3a69d0b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,33 @@
2020
五月将至无人理,项目组员心已急。
2121
两日奋战舞士气,何时完成仍成谜。
2222
回首往事泪满地,此事羞与后人提。
23+
24+
## 使用教程
25+
26+
### 单片机端
27+
*RobotMonitor.c* 中修改 `RM_UART` 的值为与上位机通讯的串口号,默认为串口1
28+
*stm32f4xx_it.c**freertos.c* 中添加以下代码
29+
```C
30+
#include "RobotMonitor.h"
31+
```
32+
`USARTx_IRQHandler` 中调用 `receiveRobotMonitorRxBuf()`
33+
*freertos.c* 中的 `USER CODE BEGIN RTOS_THREADS``USER CODE END RTOS_THREADS` 之间添加以下代码
34+
```C
35+
const osThreadAttr_t robotMonitor_attributes = {
36+
.name = "robotMonitor",
37+
.priority = (osPriority_t) osPriorityNormal,
38+
.stack_size = 1024
39+
};
40+
robotMonitorHandle = osThreadNew(tskRobotMonitor, NULL, &robotMonitor_attributes);
41+
```
42+
43+
### Keil
44+
在Keil的Project-Options for Target-User -> After Build/Rebuild,User Command 里添加 `fromelf -a -o "[email protected]" "#L"` 来生成.dtaddr文件(这个文件扩展名是我瞎起的,data address的简称)
45+
46+
### 上位机网页端
47+
选择并开启串口后,在 *读取变量列表* 中上传Keil生成的.dtaddr文件,在程序成功解析变量表之后就可以添加变量,其中:
48+
49+
* 观察 只能用于绘制曲线
50+
* 修改 只能用于调参
51+
52+
添加完成后,在图表中观察绘制的曲线,在调参面板调参

0 commit comments

Comments
 (0)