Skip to content

Algorithm to scan the CPUs

Matty edited this page Apr 16, 2018 · 2 revisions
  1. Insert the tray.
  2. Home the motors.
  3. Move the X axis cameras to the begging of the tray
  4. Take pictures
  5. Step the X axis camera to the next position
  6. Repeat step 3 and 4 until X axis has moved to middle bar of the tray(indicating the end of the first CPU)
  7. Move the Y axis to take the next picture.
  8. Repeat steps 3 to 6 until we get a stop signal from the to indicate the end of the cpu in the Y axis.
  9. Increase counter to count the number of dividers of the Y axis
  10. Increase the counter for CPU scanned.
  11. Repeat steps 3 to 8 until the number of Y axis scanned is reached.(In this case is 3 because we have two rows and total of 6 CPUs.
  12. Now reset the counter for the Y axis and home the Y is.
  13. Move the Y axis to the second half of the try(to start scanning the right side)
  14. Repeat step 3 to 10.
  15. Eject the tray.
  16. Done scanning.

Clone this wiki locally