puck_properties_consts.py
Go to the documentation of this file.
1 # puck_properties_consts.py
2 #
3 # ~~~~~~~~~~~~
4 #
5 # pyHand Constants File
6 #
7 # ~~~~~~~~~~~~
8 #
9 # ------------------------------------------------------------------
10 # Authors : Chloe Eghtebas,
11 # Brendan Ritter,
12 # Pravina Samaratunga,
13 # Jason Schwartz
14 #
15 # Last change: 08.08.2013
16 #
17 # Language: Python 2.7
18 # ------------------------------------------------------------------
19 #
20 # This version of pyHand is free software: you can redistribute it and/or
21 # modify it under the terms of the GNU General Public License as published
22 # by the Free Software Foundation.
23 #
24 
25 #PuckID
26 FINGER1 = 11
27 FINGER2 = 12
28 FINGER3 = 13
29 SPREAD = 14
30 ALL_FINGERS=(FINGER1,FINGER2,FINGER3,SPREAD)
31 GRASP=(FINGER1,FINGER2,FINGER3)
32 #Property = ID
33 ACCEL = 82
34 ADDR = 6
35 ANA0 = 18
36 ANA1 = 19
37 BAUD = 12
38 CMD = 29
39 CMD_LOAD=0
40 CMD_SAVE=1
41 CMD_RESET=2
42 CMD_DEF=3
43 CMD_GET=4
44 CMD_FIND=5
45 CMD_SET=6
46 CMD_HOME=7
47 CMD_KEEP=8
48 CMD_LOOP=9
49 CMD_PASS=10
50 CMD_VERS=11
51 CMD_ERR=12
52 CMD_HI=13
53 CMD_IC=14
54 CMD_IO=15
55 CMD_TC=16
56 CMD_TO=17
57 CMD_CLOSE=18
58 CMD_MOVE=19
59 CMD_OPEN=20
60 CMD_TERM=21
61 CMD_HELP=22
62 CMD_PPSINIT=23
63 CMD_TESTEE=24
64 CT = 56
65 CT2 = 57
66 CTS = 68
67 CTS2 = 69
68 DEF = 32
69 DIG0 = 14
70 DIG1 = 15
71 DP = 50
72 DP2 = 51
73 DS = 60
74 E = 52
75 E2 = 53
76 ECMAX = 101
77 ECMIN = 102
78 EN = 94
79 EN2 = 95
80 ERROR = 4
81 FET0 = 16
82 FET1 = 17
83 FIND = 33
84 GRPA = 26
85 GRPB = 27
86 GRPC = 28
87 HALLH = 88
88 HALLH2 = 89
89 HALLS = 87
90 HOLD = 77
91 HSG = 71
92 ID = 3
93 IHIT = 108
94 IKCOR = 93
95 IKI = 92
96 IKP = 91
97 ILOGIC = 24
98 IMOTOR = 22
99 IOFF = 74
100 IOFF2 = 75
101 IOFST = 62
102 IPNM = 86
103 IVEL = 73
104 JIDX = 85
105 JOFST = 98
106 JOFST2 = 99
107 JP = 96
108 JP2 = 97
109 KD = 80
110 KI = 81
111 KP = 79
112 LCTC = 104
113 LCVC = 105
114 LFLAGS = 103
115 LOAD = 31
116 LOCK = 13
117 LSG = 72
118 M = 58
119 M2 = 59
120 MAX_ENCODER_TICKS=195000.0
121 MAX_SPREAD_TICKS=36000.0
122 MAX_FINGERTIP_TICKS=78000.0
123 MCV = 46
124 MDS = 65
125 MECH = 66
126 MECH2 = 67
127 MODE = 8
128 MODE_IDLE=0
129 MODE_TORQUE=2
130 MODE_PID=3
131 MODE_VEL=4
132 MODE_TRAP=5
133 MOFST = 61
134 MOV = 47
135 MPE = 76
136 MT = 43
137 MV = 45
138 OD = 64
139 OT = 54
140 OT2 = 55
141 OTEMP = 11
142 P = 48
143 P2 = 49
144 PIDX = 70
145 POLES = 90
146 PTEMP = 10
147 ROLE = 1
148 SAVE = 30
149 SG = 25
150 SN = 2
151 STAT = 5
152 T = 42
153 TACT = 106
154 TACT_FULL=2
155 TACT_10=1
156 TACTID = 107
157 TACTID = 107
158 TEMP = 9
159 TENSO = 84
160 TENST = 83
161 THERM = 20
162 TIE = 100
163 TSTOP = 78
164 UPSECS = 63
165 V = 44
166 VALUE = 7
167 VBUS = 21
168 VERS = 0
169 VLOGIC = 23
170 X0 = 34
171 X1 = 35
172 X2 = 36
173 X3 = 37
174 X4 = 38
175 X5 = 39
176 X6 = 40
177 X7 = 41
178 FTS = 8
179 FTS_SG1 = 42
180 FTS_SG2 = 43
181 FTS_SG3 = 44
182 FTS_SG4 = 45
183 FTS_SG5 = 46
184 FTS_SG6 = 47
185 FTS_FX = 48
186 FTS_FY = 49
187 FTS_FZ = 50
188 FTS_TX = 51
189 FTS_TY = 52
190 FTS_TZ = 53
191 FTS_FT = 54
192 FTS_AX = 55
193 FTS_AY = 56
194 FTS_AZ = 57
195 FTS_GM = 58
196 FTS_OV = 59
197 FTS_LED = 60
198 FTS_T1 = 61
199 FTS_T2 = 62
200 FTS_T3 = 63
201 FTS_A = 64
202 NO_WRITE_PROPERTIES = [ANA0, ANA1, CT2, DP2, E2, EN2, ERROR, HALLH2, ILOGIC, IMOTOR, IOFF2, JOFST2, JP2, M2, MECH, MECH2, OT2, P2, SG, TEMP, THERM, VBUS, VLOGIC]
203 NO_READ_PROPERTIES = [CMD, CT2, DEF, DP2, E2, EN2, FIND, HALLH2, IOFF2, JOFST2, JP2, LOAD, LOCK, M, M2, MECH2, OT2, P2, SAVE]
204 LOCKED_PROPERTIES = [DIG0, DIG1, FET0, FET1, HALLH, HALLS, OD, PTEMP, ROLE, SN]


bhand_controller
Author(s): Román Navarro , Jorge Ariño
autogenerated on Thu Aug 1 2019 03:30:51