![]() |
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: |
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.
|
Re: Using Pixy with Java and roboRIO
|
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.
|
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