Skip to content

Commit 29c0b96

Browse files
update libraries
1 parent 27ac8e1 commit 29c0b96

File tree

28 files changed

+2014
-0
lines changed

28 files changed

+2014
-0
lines changed

README_footage/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
153 KB
Loading

SCServo/INST.h

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* INST.h
3+
* 飞特串行舵机协议指令定义
4+
* 日期: 2021.3.11
5+
* 作者:
6+
*/
7+
8+
#ifndef _INST_H
9+
#define _INST_H
10+
11+
typedef char s8;
12+
typedef unsigned char u8;
13+
typedef unsigned short u16;
14+
typedef short s16;
15+
typedef unsigned long u32;
16+
typedef long s32;
17+
18+
#define INST_PING 0x01
19+
#define INST_READ 0x02
20+
#define INST_WRITE 0x03
21+
#define INST_REG_WRITE 0x04
22+
#define INST_REG_ACTION 0x05
23+
#define INST_SYNC_READ 0x82
24+
#define INST_SYNC_WRITE 0x83
25+
26+
//波特率定义
27+
#define _1M 0
28+
#define _0_5M 1
29+
#define _250K 2
30+
#define _128K 3
31+
#define _115200 4
32+
#define _76800 5
33+
#define _57600 6
34+
#define _38400 7
35+
#define _19200 8
36+
#define _14400 9
37+
#define _9600 10
38+
#define _4800 11
39+
40+
#endif

0 commit comments

Comments
 (0)