![]() |
absolute minimum for displaying image on dashboard
Hey,
I was going to finally try and see if I can get some image showing from the camera, and I was wondering, what do I basicly need for the absolute minimum to show the image on the dashboard? So if I were to just copy paste code from the 2010 vision sample, what would I copy paste into my own program to get the images showing? Thanks in advance. |
Re: absolute minimum for displaying image on dashboard
Calling "AxisCamera::GetInstance();" starts up the task that broadcasts the video to the Dashboard. Put that anywhere in your code and it should run.
|
Re: absolute minimum for displaying image on dashboard
really? Thats all you need? I was expecting more. I'm assuming that that is merely just to show the camera images, and to actually set exposure, etc. we have to create an axis camera object first? Thank you though, That would be a lot simpler than what I was trying to do.
|
Re: absolute minimum for displaying image on dashboard
The return from that function is an AxisCamera& object, so you want to just use that for the object. Anything that has a GetInstance function should never be created by a user program. Always call GetInstance to create your copy of the object
|
Re: absolute minimum for displaying image on dashboard
Anyone sure this works?
|
Re: absolute minimum for displaying image on dashboard
Quote:
|
Re: absolute minimum for displaying image on dashboard
You can also use PCVideoServer (you'll need to include a file, I think its "Vision\PCVideoServer.h")
Code:
class robotclass : .... |
Re: absolute minimum for displaying image on dashboard
Quote:
|
Re: absolute minimum for displaying image on dashboard
Quote:
My team found out the hard way that the camera, when initialized with GetInstance(), starts its own PCVideoServer. Attempting to start a second one blocks the entire thread indefinitely. |
Re: absolute minimum for displaying image on dashboard
Would the GetInstance(); function be included in the wpilib1764 or do i need to download the Workbench Software update from http://first.wpi.edu/FRC/frccupdates.html
Thankyou, Hopefully can get this going before competition |
Re: absolute minimum for displaying image on dashboard
Quote:
EDIT: I still cannot get the camera to work. first of all, is it possible to access the camera through browser (192.168.0.90) if its connected to the cRIO, and classmate connected to cRIO through the wireless bridge? secondly, when the cRIO and axis cam is connected, I don't see any activity in the ethernet port. The bridge's port shows the green and orange LEDs going wild, but for the axis cam, there is no light at all. Is this normal? or should there be some type of activity. |
Re: absolute minimum for displaying image on dashboard
Team 3132 got the camera working last night.
We had gone and changed the IP address of the camera by mistake to the 10. subnet, so the code couldn't communicate with the camera. After resetting the camera IP address, and with the FRC user account configured (with password FRC) it worked with the following line put in our robot class constructor: AxisCamera &myCamera = AxisCamera::getInstance(); |
Re: absolute minimum for displaying image on dashboard
hmm..I still can't get the camera working. Rather, now I'm getting the 'watch dog not fed' message in the DS. Does anybody have a suggestion? I have set up the camera, my DS is up-to-date, the only thing I havn't done is the recent update of the workbench, but I am sure that is not necessary as that is for the DS LCD.
Here is my code btw: Code:
#include "WPILib.h" |
Re: absolute minimum for displaying image on dashboard
Quote:
2. no, there should be some activity |
Re: absolute minimum for displaying image on dashboard
thank you for the clarification byteit101.
hmm...Thats interesting then, Why won't the camera connect to the cRIO? I know its not a dead port, because I they both flash when the robot first starts up. However after that there is no activity. Does any body know why? |
| All times are GMT -5. The time now is 12:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi