Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Camera live feed not working (http://www.chiefdelphi.com/forums/showthread.php?t=84077)

z.s.tar.gz 09-03-2010 13:06

Camera live feed not working
 
All I want is for the camera to broadcast a live feed back to the driver station. The instructions aren't very clear about this. There is some kind of PCVideoServer class, but I don't really know what to do with it.

Please help, as you can tell I'm a little short on time =P

Dave Scheck 09-03-2010 14:16

Re: Camera live feed not working
 
All you should have to do is create a new AxisCamera object. It will start the video server for you.

At the top of your file, add
Code:

#include "Vision/AxisCamera.h"
Then in your initialization code add this
Code:

AxisCamera &axisCam = AxisCamera::GetInstance();
That should get you the video stream back to the default dashboard at the driver station.

z.s.tar.gz 09-03-2010 14:24

Re: Camera live feed not working
 
Thank you. I did that which means that the problem is with my dev laptop downloading the code, or lack thereof.

Mike Soukup 09-03-2010 14:27

Re: Camera live feed not working
 
Also make sure you have the latest DS version installed and (I know this is an obvious one, but I have to mention it) the camera is configured properly according to the instructions that FIRST provided. You should also read over the code in the vision demo project that came with this year's software package. They put some delays before trying to communicate with the camera. Get everything to work correctly with their code, then add the correct pieces to yours.

z.s.tar.gz 09-03-2010 16:58

Re: Camera live feed not working
 
I tried just uploading the code from the camera example onto the robot after I did the DS update again, but it still doesn't work.

slavik262 10-03-2010 10:31

Re: Camera live feed not working
 
The DS update is notorious for not working. The recommended approach seems to be to uninstall the DS software completely, manually delete any files it left behind, and then run the update. That way you make sure there's no chance that the updater is leaving behind things it shouldn't.

To return to an earlier point, the PCVideoServer class is indeed responsible for sending video to your dashboard, but one is automatically started upon getting an instance of AxisCamera.

Alan Anderson 10-03-2010 14:01

Re: Camera live feed not working
 
Quote:

Originally Posted by slavik262 (Post 935127)
The DS update is notorious for not working...

The first update had an issue that kept it from overwriting the older dashboard app with the newer one, and the effective workaround was to run it once to uninstall everything then run it again to reinstall the proper version of everything. The current update does not have that problem, and the workaround is no longer necessary.

ideasrule 12-03-2010 03:02

Re: Camera live feed not working
 
Check this:

http://www.chiefdelphi.com/forums/sh...ad.php?t=84179

Radical Pi 16-03-2010 19:21

Re: Camera live feed not working
 
double-check the physical wiring of the camera

Also, are you letting the system have a bit of time to load? The camera loads later than the cRIO code so there is a delay before images are sent.

What is the color of the ring around the camera lens while the robot is on?

mikets 16-03-2010 20:25

Re: Camera live feed not working
 
Quote:

Originally Posted by Radical Pi (Post 938300)
double-check the physical wiring of the camera

Just want to add that make sure the ethernet cable is a cross-over cable.

brianelite 17-03-2010 22:17

Re: Camera live feed not working
 
Code:

  AxisCamera &camera = AxisCamera::GetInstance();
                camera.WriteResolution(AxisCamera::kResolution_320x240);
                camera.WriteCompression(20);
                camera.WriteBrightness(0);

Is our camera code an it works fine... not sure what happens if you only have the first line


All times are GMT -5. The time now is 12:19.

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