PseudoResonance / Pixy2JavaAPI

Pixy2 API ported to Java for FIRST Robotics RoboRIO
37 stars 11 forks source link

Outdated Wiki #13

Closed mfrancis33 closed 3 years ago

mfrancis33 commented 3 years ago

As of update 1.4 (February 23, 2020), the wiki is out of date. The following line of code from the wiki will generate a type-casting error:

ArrayList<Block> blocks = pixy.getCCC().getBlocks();

The specific error is Type mismatch: cannot convert from int to ArrayList<Pixy2CCC.Block>. This is because in the 1.4 update, the method getBlocks was repurposed to retrieve the count of objects the PixyCam sees, and the old method was changed to getBlockCache. The wiki hasn't been updated since October 15, 2019, which is 4 months prior to the update.

PseudoResonance commented 3 years ago

Thank you for pointing that out, it has now been fixed!