![]() |
Reinstall of dashboard doesn't fix camera image streaming
I'm trying to get the camera to stream images to the dashboard. Currently, this is what happens:
The code (in C++) looks like this: Code:
printf("in operator control\n");When I run the code, I get, in the console: Code:
in operator controlI can ping the camera from the cRIO's command prompt and I set up the camera using the "Setup Axis Camera" tool. When I run the program and look at the dashboard, all that I see for the camera is a white screen. Does anyone have any ideas why it isn't working? Thanks. |
Re: Reinstall of dashboard doesn't fix camera image streaming
I got it working. The problem, I think, was that I wasn't giving the camera enough time to boot up. A Wait() at the start, or just waiting for the cRIO a while after booting, fixes this.
|
Re: Reinstall of dashboard doesn't fix camera image streaming
Ah. I saw this with a C team last year. If the cRIO boots faster than the camera, you can have the cRIO start pestering the camera for images. The camera is still in the process of booting, and has to spend time processing the images and returning errors. Doing this, meant that the camera wasn't finished booting for ~90 seconds. The solution is to slow down the camera task, especially in the error case. If you don't receive an image from the camera, or on a specific error, sleep for 250 or 500 ms before asking again.
Ideally this would be put into WPILib. Greg McKaskle |
| All times are GMT -5. The time now is 13:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi