Commits

Peter Polidoro committed 3fa8791

Modified to automatically place two pin connectors

  • Participants
  • Parent commits b828153

Comments (0)

Files changed (2)

File brd_tools.py

     board_filename = sys.argv[1]
     print "Placing components in %s" % (board_filename,)
 
-    xNum_input = 6
-    yNum_input = 96
-    xNum_output = 24
-    yNum_output = 24
+    # xNum_input = 6
+    # yNum_input = 96
+    # xNum_output = 24
+    # yNum_output = 24
+    xNum_input = 4
+    yNum_input = 4
+    xNum_output = 4
+    yNum_output = 4
     xStep = 0.3691
     yStep = 0.3691
+    # xCornerRough = 10.0
+    # yCornerRough = 10.0
+    xCornerRough = 5.0
+    yCornerRough = 5.0
     xCenter = (xNum_output - 1)/2 * xStep
     yCenter = (yNum_output - 1)/2 * yStep
-    xStart = int(10.0 + xCenter) - xCenter
-    yStart = int(10.0 + yCenter) - yCenter
+    xStart = int(xCornerRough + xCenter) - xCenter
+    yStart = int(yCornerRough + yCenter) - yCenter
 
     placer = ComponentPlacer(board_filename)
     for h in range(0,int(xNum_output/xNum_input)):

File led_schem_multi_array.py

 
     params = {
             'name'              : 'ledarray',
-            'numArrays'         : 2,
-            'numSeries'         : 6,
-            'numParallel'       : 48,
+            # 'numArrays'         : 2,
+            # 'numSeries'         : 6,
+            # 'numParallel'       : 48,
+            'numArrays'         : 1,
+            'numSeries'         : 4,
+            'numParallel'       : 4,
             'upperLeft'         : (2500,1000),
             'spacing'           : (600,400),
             'annotationOffset'  : (0,-100),