|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
cRIO boots before Camera
We have been having an issue with the camera where the camera doesnt finish booting until after the cRIO does and it fills our driverstation log with errors because of this. Anything we can do to fix this?
|
|
#2
|
|||
|
|||
|
Re: cRIO boots before Camera
Does the camera's slow start affect your robot in any other way?
Alex Brinister |
|
#3
|
|||
|
|||
|
Re: cRIO boots before Camera
I'm not 100% sure if this is your exact problem, but in reviewing my 2012 camera code, I noticed that I explicitly avoid getting an instance of the camera (i.e. connecting) in a constructor.
I use the following function to get a pointer to the camera whenever I want to use it: Code:
AxisCamera *Camera::GetCamera()
{
static AxisCamera *camera = (AxisCamera *) 0;
if (camera == (AxisCamera *) 0)
{
AxisCamera &camRef = AxisCamera::GetInstance("10.24.74.11");
camera = &camRef;
}
return camera;
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|