-
Notifications
You must be signed in to change notification settings - Fork 0
/
Feeder.py
55 lines (49 loc) · 1.69 KB
/
Feeder.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
class Feeder():
"""Contains all the info for a given feeder or reel of components"""
def __init__(self,
feeder_ID = None,
device_name = None,
stack_x_offset = None,
stack_y_offset = None,
length = 0,
height = 0,
speed = 0,
component_size_x = 0.0,
component_size_y = 0.0,
head = 1,
angle_compensation = 0,
feed_spacing = None,
place_component = True,
check_vacuum = True,
use_vision = True,
aliases = None,
centroid_correction_x = 0,
centroid_correction_y = 0,
footprint = None,
value = None,
comment = None,
count_in_design = 0
):
self.feeder_ID = feeder_ID
self.device_name = device_name.strip()
self.stack_x_offset = stack_x_offset
self.stack_y_offset = stack_y_offset
self.height = height
self.speed = speed
self.component_size_x = component_size_x
self.component_size_y = component_size_y
self.head = head
self.angle_compensation = angle_compensation
self.feed_spacing = feed_spacing
self.place_component = place_component
self.check_vacuum = check_vacuum
self.use_vision = use_vision
self.aliases = aliases.strip()
self.centroid_correction_x = centroid_correction_x
self.centroid_correction_y = centroid_correction_y
self.footprint = footprint
self.value = value
self.comment = comment
self.count_in_design = count_in_design
def __repr__(self):
return "<Feeder {}: {} - Count: {}>".format(self.feeder_ID, self.device_name, self.count_in_design)