|
Re: I2C Error on read() or write()
Thanks for the help. Turns out that I had connected the board incorrectly, and that the data I was getting from Java was random noise, which I did not get in Python because I never ran initialize() in Java.
Again, thanks for the help. I got the gyro working. It still throws an error every once in a while (but good data otherwise), which the code catches and replaces with an array of zeroes. I'd like a better solution, and to get to the bottom of the I2C errors, but that is a project for later. I'll definitely add it to robotpy-wpilib-utilities once decoding and calibration is all figured out.
__________________
I have approximate knowledge of many things.
FRC 3184: 2014-, FTC 10648: 2015-
|