-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotor_specs.py
77 lines (77 loc) · 1.98 KB
/
motor_specs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# motor specs as a dict
MOTORS = {
# unused
"pololu_0": {
"position": "winch",
"frequency": 300, # 300 rpm
"enc_pins": [], # no encoder
"driver_pins": [21, 22], # pwm1, pwm2
},
"pololu_1": {
"position": "rear left",
"frequency": 300, # 300 rpm
"enc_pins": [15,16], # encA, encB
"driver_pins": [0, 7], # dir, en
},
"pololu_2": {
"position": "front left",
"frequency": 300, # 300 rpm
"enc_pins": [1, 4], # encA, encB
"driver_pins": [2, 3], # dir, en
},
"pololu_3": {
"position": "rear right",
"frequency": 300, # 300 rpm
"enc_pins": [5, 6], # encA, encB
"driver_pins": [30, 14], # dir, en
},
"pololu_4": {
"position": "front right",
"frequency": 300, # 300 rpm
"enc_pins": [11, 31], # encA, encB
"driver_pins": [12, 13], # dir, en
},
"actuonix_1": {
"position": "veritcal left",
"frequency": 300, # hz
"dc_low": 30, # 30-60%
"dc_high": 60,
"stroke": 100, # mm
},
"actuonix_2": {
"position": "veritcal right",
"frequency": 300, # hz
"dc_low": 30, # 30-60%
"dc_high": 60,
"stroke": 100, # mm
},
"actuonix_3": {
"position": "horizontal left",
"frequency": 300, # hz
"dc_low": 30, # 30-60%
"dc_high": 60,
"stroke": 100, # mm
},
# unused
"actuonix_4": {
"position": "horizontal right",
"frequency": 300, # hz
"dc_low": 30, # 30-60%
"dc_high": 60,
"stroke": 100, # mm
},
# unused
"turnigy_1": {
"position": "plate left",
"frequency": 300, # hz
"dc_low": 28, # 28-64%
"dc_high": 64,
},
# unused
"turnigy_2": {
"position": "plate right",
"frequency": 300, # hz
"dc_low": 28, # 28-64%
"dc_high": 64,
}
}