Hi all, head programmer for Apex 5803 here. We’re trying to use a Pixy2 to track and follow power cells. The code builds and deploys to the robot properly with no errors until I try to fetch values from the Pixy, at which point we get a nullPointerException at whichever line tries to access those values and the code crashes. If anyone has any tips on using the Pixy or insight into our issue, it would be greatly appreciated.
We’re using this library and our code closely matches the example code found here.
Our Pixy is plugged into the RoboRio’s onboard SPI port (no Arduino or Raspberry Pi to process separately)
We’ve updated the Pixy to the latest firmware and configured it with signatures and set it to use SPI for communication.
I can post our code if it would be helpful, but I’m not used to text formatting on Chief Delphi and decided to omit it from this post.
As I’m writing this, I remember that we named signature 1 on the Pixy (the one we trained for the power cell) “PowerCell.” Could that be throwing things off and be responsible for the nullPointerException?
Also, I’m having trouble getting the Pixy to configure the Color Connected Components signatures inside of PixyMon; could that be responsible? If anyone could tell us how to do that it would be very helpful.
Edit: if it’s important, the Pixy if configured to communicate using the “SPI with SS” protocol instead of the Arduino SPI (if you’ve used PixyMon you’ll know what I mean)