![]() |
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 |
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"Code:
AxisCamera &axisCam = AxisCamera::GetInstance(); |
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.
|
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.
|
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.
|
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. |
Re: Camera live feed not working
Quote:
|
Re: Camera live feed not working
|
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? |
Re: Camera live feed not working
Quote:
|
Re: Camera live feed not working
Code:
AxisCamera &camera = AxisCamera::GetInstance(); |
| 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