Go to Post "The reason we struggle with insecurity is because we compare our behind-the-scenes with everyone else's highlight reel." - davidthefat [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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
  #17   Spotlight this post!  
Unread 29-03-2016, 14:21
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Human Vision Camera compatiable with FMS & Java ?

Quote:
Originally Posted by de_ View Post
If you could send me some links, I will verify everything with the lead programming mentor.

Everyone: Please remember the 3000 worked fine via wifi and tethered at all times outside of a regional. It only did not work when connected to FMS.
I am going to direct quote my directions from an e-mail I sent to my students on FRC11:

Quote:
This was tested this evening (2/28/2016) with the Logitech 920C on my robot configured as Team 11:

DriversStation: 16.0.2
RoboRIO: FRC_roboRIO_2016_v19 aka Update 1 (2nd of the 2016 season)
Oracle Java: 2016 Java Release 4
Pnuematics Control Module: 1.65
Power Distribution Panel: 1.40
Talon SRX: 2.0

I setup the NI SmartDashboard like this:
1. Setup button, 3rd down on the left of the bottom DS panel.
2. Dashboard Type: Default
3. DS Protocol 2015
4. Top panel bottom right of video pane, select 'Camera Off'.
5. Select: 'USB Camera HW'

Upload the WPILib Simple Vision example from Eclipse setup for JAVA:
1. File -> New -> Project
2. Select: 'Example Robot Java Project'
3. Scroll down to: 'Complete List'
4. Select: 'Simple Vision' 5th item up from bottom of that section.
5. Click: 'Finished' at the bottom right.

Open 'Simple Vision' code:
1. Expand in left project column:
'Simple Vision' -> 'src' -> 'org.usfirst.frc.team11.robot' -> 'Robot.java' -> 'Robot'
2. Double click 'Robot to open code for it.

Check USB camera configuration:
1. Connect USB tether to robot.
2. Open web browser and go to: 172.22.11.2
3. Scroll down in second column from the left of the browser till you find:
USB symbol labeled: 'HD Pro Webcam C920'
4. Note the name it's usually 'cam0'.
5. If that's not 'cam0' find it in the code and change the line that looks like:
server.startAutomaticCapture("cam0");

Upload the code to the robot:
1. Right click in the project column (left most): 'Simple Vision'.
2. Scroll down to: 'Run as'
3. Click: 'WPILib Java Deploy'

Code should upload to RoboRIO.
Display should start on NI Smart Dashboard.
See attached picture as evidence.
Do you want me to upload the sample code?
I would like to see your code, as I am sure Greg would as well.

Last edited by techhelpbb : 30-03-2016 at 11:16.
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 00:12.

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