Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Using Pixy with Java and roboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=154371)

Speckles04 28-01-2017 11:27

Using Pixy with Java and roboRIO
 
Hi, James from 2977 here.
I was wondering if anyone would be willing to share some knowledge of PixyCam with us? We just got one and are wondering how to implement it with Java, and as well how to connect it to the roboRIO. If anyone knows anything, help would be appreciated!
:deadhorse:

mikets 28-01-2017 14:34

Re: Using Pixy with Java and roboRIO
 
There are many ways to connect the Pixy camera to RoboRIO: SPI, I2C, Serial, Analog etc. How to implement code to work with Pixy depends on how you connect the camera. The easiest way is to connect it via Analog if you only want to get an idea on whether your one target is on your left or right. If you want info on multiple targets, you may have to go with any of the digital serial interface. That may require you to write a "driver" to communicate with it.

BradAMiller 29-01-2017 09:38

Re: Using Pixy with Java and roboRIO
 
I've never used it, but you may want to check this out.

https://github.com/Team5593/pixy

Speckles04 02-02-2017 18:04

Re: Using Pixy with Java and roboRIO
 
Ok so, I found some code (I used the post by user "2B || !2B"), but I have no idea how to make this show in the SmartDahsboard. Our team is planning to aim with camera tracking on the reflective tape, and I would like to know how I import/use the signature I want from the camera, and how I could put this into the SmartDahsboard.

loafdog 03-02-2017 21:11

Re: Using Pixy with Java and roboRIO
 
For testing we just dumped all the signatures to smart dashboard. See
https://github.com/BHSRobotix/Steamw...ision.java#L55

We just called textPixy from teleopPeriodic.

You can find what other teams are doing with pixy by searching on github, for example: https://github.com/search?utf8=%E2%9C%93&q=frc+pixy&type=Code&ref=sea rchresults


All times are GMT -5. The time now is 09:50.

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