-
Notifications
You must be signed in to change notification settings - Fork 0
Algorithm to scan the CPUs
Matty edited this page Jun 16, 2018
·
2 revisions
- Insert the tray.
- Home the motors.
- Move the X axis cameras to the begging of the tray
- Take pictures
- Step the X axis camera to the next position
- Repeat step 3 and 4 until X axis has moved to middle bar of the tray(indicating the end of the first CPU)
- Move the Y axis to take the next picture.
- Repeat steps 3 to 6 until we get a stop signal from the to indicate the end of the cpu in the Y axis. (We did not use the switch, but rather we used a software implementation of switch behavior. See code for this)
- Increase counter to count the number of dividers of the Y axis
- Increase the counter for CPU scanned.
- 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.
- Now reset the counter for the Y axis and home the Y is.
- Move the Y axis to the second half of the try(to start scanning the right side)
- Repeat step 3 to 10.
- Eject the tray.
- Done scanning.