Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Pixy connecting to roborio via usb (http://www.chiefdelphi.com/forums/showthread.php?t=154144)

sabercatrobotic 23-01-2017 19:22

Pixy connecting to roborio via usb
 
Our team has purchased a Pixy camera this year. We decided to try to use USB to communicate with the roborio. This has been the primary source we have been using.

http://cmucam.org/projects/cmucam5/w...ample_on_Linux

After getting through a wide range of problems, we are stuck so close to the end.
Code:

admin@roboRIO-4146-FRC:~/pixy/scripts# ./build_libpixyusb.sh
mkdir: can't create directory '../build': File exists
mkdir: can't create directory '../build/libpixyusb': File exists
-- Found libusb-1.0:
--  - Includes: /usr/include/libusb-1.0
--  - Libraries: /lib/libusb-1.0.so
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--  thread
--  system
-- Configuring done
-- Generating done
-- Build files have been written to: /home/admin/pixy/build/libpixyusb
-- Found libusb-1.0:
--  - Includes: /usr/include/libusb-1.0
--  - Libraries: /lib/libusb-1.0.so
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--  thread
--  system
-- Configuring done
-- Generating done
-- Build files have been written to: /home/admin/pixy/build/libpixyusb
make[2]: Warning: File 'CMakeFiles/pixyusb.dir/flags.make' has modification time 14999 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'CMakeFiles/pixyusb.dir/flags.make' has modification time 14999 s in the future
[ 16%] Building CXX object CMakeFiles/pixyusb.dir/src/chirpreceiver.cpp.o
[ 33%] Building CXX object CMakeFiles/pixyusb.dir/src/pixyinterpreter.cpp.o
virtual memory exhausted: Cannot allocate memory
CMakeFiles/pixyusb.dir/build.make:77: recipe for target 'CMakeFiles/pixyusb.dir/src/pixyinterpreter.cpp.o' failed
make[2]: *** [CMakeFiles/pixyusb.dir/src/pixyinterpreter.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/pixyusb.dir/all' failed
make[1]: *** [CMakeFiles/pixyusb.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2

We have tried to make a swapfile, but whenever we try to enable we get this
Code:

admin@roboRIO-4146-FRC:~# swapon /swapfile1
swapon: /swapfile1: Invalid argument

We're kinda at our wits end. Does anybody have any ideas? If this doesnt end up working, we will probably switch to IC2 or SPI, but USB would be preferable.

Thanks!

DevOrc 23-01-2017 19:29

Re: Pixy connecting to roborio via usb
 
We had this same problem. We ended up communicating with Arduino because of the libraries.

Hadi379 23-01-2017 19:53

Re: Pixy connecting to roborio via usb
 
There are other ways to connect the pixy to the roborio. Have you tried the serial (SPI, I2C)? Or the Analog/Digital connections?

loafdog 27-01-2017 21:28

Re: Pixy connecting to roborio via usb
 
You can't use usb to connect Pixy directly to roborio. See https://www.chiefdelphi.com/forums/s...d.php?t=153409

We ended up using I2C to connect Pixy to roborio. We can get data from Pixy, no idea what to do with it yet :).


All times are GMT -5. The time now is 15:30.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi