Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sts3032_regs.h
Go to the documentation of this file.
1#pragma once
2
3
4#define INST_PING 0x01
5#define INST_READ 0x02
6#define INST_WRITE 0x03
7#define INST_REG_WRITE 0x04
8#define INST_REG_ACTION 0x05
9#define INST_SYNC_READ 0x82
10#define INST_SYNC_WRITE 0x83
11
12
13#define SMS_STS_1M 0
14#define SMS_STS_0_5M 1
15#define SMS_STS_250K 2
16#define SMS_STS_128K 3
17#define SMS_STS_115200 4
18#define SMS_STS_76800 5
19#define SMS_STS_57600 6
20#define SMS_STS_38400 7
21
22//memory table definition
23//-------EPROM(read only)--------
24#define SMS_STS_MODEL_L 3
25#define SMS_STS_MODEL_H 4
26
27//-------EPROM(read and write)--------
28#define SMS_STS_ID 5
29#define SMS_STS_BAUD_RATE 6
30#define SMS_STS_RESPONSE_LEVEL 8
31#define SMS_STS_MIN_ANGLE_LIMIT_L 9
32#define SMS_STS_MIN_ANGLE_LIMIT_H 10
33#define SMS_STS_MAX_ANGLE_LIMIT_L 11
34#define SMS_STS_MAX_ANGLE_LIMIT_H 12
35#define SMS_STS_CW_DEAD 26
36#define SMS_STS_CCW_DEAD 27
37#define SMS_STS_OFS_L 31
38#define SMS_STS_OFS_H 32
39#define SMS_STS_MODE 33
40
41//-------SRAM(read and write)--------
42#define SMS_STS_TORQUE_ENABLE 40
43#define SMS_STS_ACC 41
44#define SMS_STS_GOAL_POSITION_L 42
45#define SMS_STS_GOAL_POSITION_H 43
46#define SMS_STS_GOAL_TIME_L 44
47#define SMS_STS_GOAL_TIME_H 45
48#define SMS_STS_GOAL_SPEED_L 46
49#define SMS_STS_GOAL_SPEED_H 47
50#define SMS_STS_LOCK 55
51
52//-------SRAM(read only)--------
53#define SMS_STS_PRESENT_POSITION_L 56
54#define SMS_STS_PRESENT_POSITION_H 57
55#define SMS_STS_PRESENT_SPEED_L 58
56#define SMS_STS_PRESENT_SPEED_H 59
57#define SMS_STS_PRESENT_LOAD_L 60
58#define SMS_STS_PRESENT_LOAD_H 61
59#define SMS_STS_PRESENT_VOLTAGE 62
60#define SMS_STS_PRESENT_TEMPERATURE 63
61#define SMS_STS_MOVING 66
62#define SMS_STS_PRESENT_CURRENT_L 69
63#define SMS_STS_PRESENT_CURRENT_H 70