-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
52 lines (48 loc) · 1.19 KB
/
config.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
from Motor.IMotor import IMotor
from Motor.MotorConfig import MotorConfig
from LimitSwitch.LimitSwitch import LimitSwitch
TURNTABLE = MotorConfig(
name="TURNTABLE",
degrees_per_full_step=1.8,
microsteps_per_step=16,
gear_ratio=160 / 15,
step_pin=11,
enable_pin=16,
direction_pin=36,
max_angle=360,
#offset_angle=-85,
offset_angle=0,
limit_switch=LimitSwitch(pin=29),
forward_direction=IMotor.BACKWARD
)
TURRET = MotorConfig(
name="TURRET",
degrees_per_full_step=1.8,
microsteps_per_step=16,
gear_ratio=100 / 16,
step_pin=13,
enable_pin=18,
direction_pin=38,
max_angle=180,
#offset_angle=-85,
offset_angle=0,
limit_switch=LimitSwitch(pin=31),
#limit_switch=KeyboardLimitSwitch(key='k'),
forward_direction=IMotor.BACKWARD
)
SPIN = MotorConfig(
name="SPIN",
degrees_per_full_step=1.8,
microsteps_per_step=16,
gear_ratio=100 / 17,
step_pin=15,
enable_pin=22,
direction_pin=40,
max_angle=300,
#offset_angle=-180,
offset_angle=0,
limit_switch=LimitSwitch(pin=33),
#limit_switch=KeyboardLimitSwitch(key='l'),
forward_direction=IMotor.FORWARD
)
zero_degrees_per_sec=50