hello_pixy not giving expected results

Added by Osman Eralp 6 months ago

I'm trying to use my pixy cam for the first time. I'm running on a Raspberry Pi 3. I built PixyMon, and it runs as expected. However, hello_pixy just gives the following output:

...
frame 52:
pixydebug: USBLink::receive()
pixydebug: libusb_bulk_transfer(64 bytes) = 0
pixydebug: USBLink::receive() returned 64 (bytes transferred)
frame 53:
pixydebug: USBLink::receive()
pixydebug: libusb_bulk_transfer(64 bytes) = 0
pixydebug: USBLink::receive() returned 64 (bytes transferred)
frame 54:
...

According to the wiki, hello_pixy should show detected blocks, but it's not doing that. Does anyone know what the message above mean and why I'm not seeing blocks?

Thanks,
Osman


Replies (3)

RE: hello_pixy not giving expected results - Added by Edward Getz 6 months ago

Hello Osman,
I assume that you turned on debugging (yes?) As a sanity check, make sure that you have taught Pixy an object and Pixy's LED is illuminating when the object is present. Also make sure that you aren't running PixyMon while running hello_pixy. Did you need to run PixyMon with administrator privileges?

Let me know what you find.

Edward

RE: hello_pixy not giving expected results - Added by Osman Eralp 6 months ago

I did not intentionally turn on debugging! Turning it off sounds like the first step. How can I turn it off?

RE: hello_pixy not giving expected results - Added by Edward Getz 6 months ago

Hello Osman,
I'm not sure why you are getting these messages unless DEBUG was defined (it is not by default).

Can you try getting a fresh copy of source?

git clone https://github.com/charmedlabs/pixy.git pixy_new

I assume you are using the directions described here:

http://cmucam.org/projects/cmucam5/wiki/Building_the_libpixyusb_example_on_Linux

Regardless though, debugging being on is not going to cause problems.

It appears that Pixy isn't detecting anything. Make sure that you have taught Pixy an object and Pixy's LED is illuminating when the object is present (and while running hello_pixy.)

Edward

(1-3/3)