-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I've finally gotten a working board assembled, tested, and working (sending serial signals out with ball bounces!) and a projector setup.
I'm running python 2.7.10 and installed the pySerial library and hoped that was all I needed to proceed. I can get through all the training bounces for one side, but then get the following error.
Traceback (most recent call last):
File "training.py", line 433, in
[xCoeff1, xCoeff2, xCoeff3, xCoeff4, yCoeff1, yCoeff2, yCoeff3, yCoeff4] = train(arduino_serial, False)
File "training.py", line 274, in train
xCoeff1 = M1inv * x
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/matrixlib/defmatrix.py", line 347, in rmul
return N.dot(other, self)
ValueError: matrices are not aligned
I printed the matrices (x and M1inv) and they do look quite different. I would love any help with matrix math and code that's over my head. Thanks!