Go to Post Maybe Dean Kamen can appear in Levi's advertising? - David Brinza [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 15-01-2017, 14:26
avestasticc's Avatar
avestasticc avestasticc is offline
Registered User
AKA: Avery
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: ohio
Posts: 8
avestasticc is an unknown quantity at this point
Pixy programming and setup

This year our team is trying to use a pixy camera over usb. Is it possible to connect the pixy directly to the roborio? If so how would you go about programming it to control a gyro to track?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2017, 22:21
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 programming and setup

Our team is trying to use pixy for first time too. Try searching CD forums for 'pixy'. I found a number of threads discussing all your options. I found the pixy docs helpful to figure out how to connect the pixy to roborio.. particularly these two pages on their wiki:
http://www.cmucam.org/projects/cmuca.../Porting_Guide
http://www.cmucam.org/projects/cmucam5/wiki/RoboRIO

About the gyro, I'm assuming you meant using a gyro related to aiming? I'm also going to assume the gyro is mounted to the robot to measure how far robot has turned. You want take the output from the pixy and use it to determine how far off you are from your target(think degrees left/right). Then tell your robot to turn left/right to line up with the target. You can use the gyro to measure how far your robot has turned so it knows when to stop turning. I can't help you much with details or sample code b/c we are a Java team. There are many threads on CD that talk about using vision to aim. The basics are the same regardless whether you use a pixy or some other type of camera.
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 10:55.

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