Go to Post Don't let your FIRST blinders prevent you from thinking. - JaneYoung [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 23-01-2017, 19:29
DevOrc's Avatar
DevOrc DevOrc is offline
Registered User
FRC #4283 (INSPIRE ROBOTICS)
Team Role: Programmer
 
Join Date: Dec 2016
Rookie Year: 2016
Location: Granville, Ohio
Posts: 8
DevOrc is an unknown quantity at this point
Re: Pixy connecting to roborio via usb

We had this same problem. We ended up communicating with Arduino because of the libraries.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2017, 19:53
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 171
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2017, 21:28
loafdog loafdog is offline
Registered User
AKA: Maciej
FRC #2876 (DevilBotz)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Burlington, MA
Posts: 39
loafdog is on a distinguished road
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 .
Reply With Quote
Reply


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