Skip to content

Commit 0406790

Browse files
committed
📝 update: readme
1 parent 77d0061 commit 0406790

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## 1.简介
1313

14-
> 主机通过 `UART` 下发命令,控制镜头上的两个4相步进电机实现聚焦(focus)与变焦(zoom),与程序相对应的硬件存放与[变焦镜头控制器](https://github.com/ROV-Master/rovmaster-hardware/tree/master/5.ROV%20Master%20Zoom%20Controller%20V2.0)
14+
> 主机通过 `UART` 下发命令,控制镜头上的两个4相步进电机实现聚焦(focus)与变焦(zoom),与程序相对应的硬件存放于[变焦镜头控制器](https://github.com/ROV-Master/rovmaster-hardware/tree/master/5.ROV%20Master%20Zoom%20Controller%20V2.0)
1515
1616
## 2.说明
1717
![变焦镜头步进电机励磁序列](https://zengwangfa.oss-cn-shanghai.aliyuncs.com/rov/focus_camera_sequence_of_excitation.png "变焦镜头步进电机励磁序列")
@@ -43,9 +43,9 @@ static rt_uint8_t R_Rotation[4] = {0x05,0x06,0x0A,0x09} ; // 4节拍反转表 R
4343
void selete_pin(rt_uint32_t pin, rt_uint8_t beat)
4444
{
4545
if(beat)
46-
rt_pin_write(pin, PIN_HIGH);
47-
else
48-
rt_pin_write(pin, PIN_LOW);
46+
rt_pin_write(pin, PIN_HIGH);
47+
else
48+
rt_pin_write(pin, PIN_LOW);
4949
}
5050
5151
/**

applications/stepper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
stepper_t focusStepper = { // 放大缩小
2626
.name = "focus",
2727

28-
.Ap_pin = GET_PIN(B, 10), /* A+ */
29-
.Am_pin = GET_PIN(B, 9), /* A- */
30-
.Bp_pin = GET_PIN(B, 8), /* B+ */
31-
.Bm_pin = GET_PIN(B, 7), /* B- */
28+
.Ap_pin = GET_PIN(B, 10), /* A+ */
29+
.Am_pin = GET_PIN(B, 9), /* A- */
30+
.Bp_pin = GET_PIN(B, 8), /* B+ */
31+
.Bm_pin = GET_PIN(B, 7), /* B- */
3232
};
3333

3434
/**

0 commit comments

Comments
 (0)