Closed harvardbiorobotics closed 11 years ago
e6f1fafabf2c6667b0713379c4ff64ab6caae6c4
xmega firmware builds and loads correctly
however, running TakkTile.py gives the following result:
--1-- [0, 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] 235513531383FFFF40FF12003100 self.getDataRaw(): {0: (330, 509), 1: (345, 507), 2: (349, 507), 3: (337, 511), 4: (331, 512), 5: (336, 512), 6: (373, 508), 7: (361, 510), 8: (342, 512), 9: (355, 512), 10: (286, 510), 11: (360, 510), 12: (350, 509), 13: (359, 512), 14: (347, 512), 15: (319, 512), 16: (369, 506), 17: (366, 511), 18: (372, 510), 19: (355, 511), 20: (357, 511), 21: (348, 511), 22: (386, 509), 23: (349, 510), 24: (381, 511), 25: (361, 511), 26: (339, 506), 27: (346, 511), 28: (359, 512), 29: (355, 511), 30: (361, 508), 31: (339, 512), 32: (353, 509), 33: (322, 512), 34: (323, 512), 35: (326, 510), 36: (357, 512), 37: (359, 509), 38: (352, 510), 39: (335, 510)} {0: 103.2184, 1: 97.8014, 2: 97.4458, 3: 99.1466, 4: 103.2206, 5: 103.1345, 6: 97.8151, 7: 97.5343, 8: 100.1319, 9: 100.2659, 10: 100.3325, 11: 100.114, 12: 100.0552, 13: 100.2711, 14: 100.2332, 15: 100.2456, 16: 100.2608, 17: 100.0745, 18: 100.4349, 19: 100.2142, 20: 100.2749, 21: 100.2182, 22: 100.3515, 23: 100.1492, 24: 100.3825, 25: 100.293, 26: 101.0153, 27: 100.2736, 28: 100.2632, 29: 100.2553, 30: 100.8056, 31: 100.4093, 32: 100.424, 33: 100.1671, 34: 100.2145, 35: 100.5159, 36: 100.0821, 37: 100.4744, 38: 100.2443, 39: 100.5307} Traceback (most recent call last): File "TakkTile.py", line 135, in print(tact.getData()) File "TakkTile.py", line 90, in getData data = self.getDataRaw() File "TakkTile.py", line 71, in getDataRaw data = self.dev.read(0x81, 720, 0, 100) File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 661, in read self.get_timeout(timeout) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 541, in bulk_read timeout) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 648, in read _check(retval) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 403, in _check raise USBError(_str_error[ret], ret, _libusb_errno[ret]) usb.core.USBError: [Errno 32] Pipe error
resolved by https://github.com/TakkTile/TakkTile-usb/commit/874a674b659027718ac9111f5b63e9bd2a34a02e
e6f1fafabf2c6667b0713379c4ff64ab6caae6c4
xmega firmware builds and loads correctly
however, running TakkTile.py gives the following result:
--1-- [0, 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] 235513531383FFFF40FF12003100 self.getDataRaw(): {0: (330, 509), 1: (345, 507), 2: (349, 507), 3: (337, 511), 4: (331, 512), 5: (336, 512), 6: (373, 508), 7: (361, 510), 8: (342, 512), 9: (355, 512), 10: (286, 510), 11: (360, 510), 12: (350, 509), 13: (359, 512), 14: (347, 512), 15: (319, 512), 16: (369, 506), 17: (366, 511), 18: (372, 510), 19: (355, 511), 20: (357, 511), 21: (348, 511), 22: (386, 509), 23: (349, 510), 24: (381, 511), 25: (361, 511), 26: (339, 506), 27: (346, 511), 28: (359, 512), 29: (355, 511), 30: (361, 508), 31: (339, 512), 32: (353, 509), 33: (322, 512), 34: (323, 512), 35: (326, 510), 36: (357, 512), 37: (359, 509), 38: (352, 510), 39: (335, 510)} {0: 103.2184, 1: 97.8014, 2: 97.4458, 3: 99.1466, 4: 103.2206, 5: 103.1345, 6: 97.8151, 7: 97.5343, 8: 100.1319, 9: 100.2659, 10: 100.3325, 11: 100.114, 12: 100.0552, 13: 100.2711, 14: 100.2332, 15: 100.2456, 16: 100.2608, 17: 100.0745, 18: 100.4349, 19: 100.2142, 20: 100.2749, 21: 100.2182, 22: 100.3515, 23: 100.1492, 24: 100.3825, 25: 100.293, 26: 101.0153, 27: 100.2736, 28: 100.2632, 29: 100.2553, 30: 100.8056, 31: 100.4093, 32: 100.424, 33: 100.1671, 34: 100.2145, 35: 100.5159, 36: 100.0821, 37: 100.4744, 38: 100.2443, 39: 100.5307} Traceback (most recent call last): File "TakkTile.py", line 135, in
print(tact.getData())
File "TakkTile.py", line 90, in getData
data = self.getDataRaw()
File "TakkTile.py", line 71, in getDataRaw
data = self.dev.read(0x81, 720, 0, 100)
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 661, in read
self.get_timeout(timeout)
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 541, in bulk_read
timeout)
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 648, in read
_check(retval)
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 403, in _check
raise USBError(_str_error[ret], ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error