Go to Post Nerd harder, be seen doing it... don't care what others think. - Mr. Lim [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-01-2017, 19:22
sabercatrobotic sabercatrobotic is offline
Registered User
FRC #4146
 
Join Date: Jan 2012
Location: Arizona
Posts: 2
sabercatrobotic is an unknown quantity at this point
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!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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