code/WPILib/Vision/AxisCamera.cpp
/**
 * Task spawned by AxisCamera constructor to receive images from cam
 * If setNewImageSem has been called, this function does a semGive on each new image
 * Images can be accessed by calling getImage()
 */
Task spawned by AxisCamera constructor to receive images from cam
If setNewImageSem has been called, this function does a semGive on each new image
Images can be accessed by calling getImage()
Task spawned by AxisCamera constructor to receive images from cam If setNewImageSem has been called this function does a semGive on each new image Images can be accessed by calling getImage ()
int AxisCamera::ImageStreamTaskFunction()
{
	while (1)
	{
		char * requestString = "GET /mjpg/video.mjpg HTTP/1.1\n\
User-Agent: HTTPStreamClient\n\
Connection: Keep-Alive\n\
Cache-Control: no-cache\n\
Authorization: Basic RlJDOkZSQw==\n\n";
		m_cameraSocket = CreateCameraSocket(requestString);
		if (m_cameraSocket == 0)
		{
			taskDelay(1000);
			continue;
		}
		ReadImagesFromCamera();
	}
}
int AxisCamera :: ImageStreamTaskFunction ( ) { while ( 1 ) { char * requestString = " \n \
 \n \
 \n \
 \n \
 \n \n " ; m_cameraSocket = CreateCameraSocket ( requestString ) ; if ( m_cameraSocket == 0 ) { taskDelay ( 1000 ) ; continue ; } ReadImagesFromCamera ( ) ; } }
Task spawned by AxisCamera constructor to receive images from cam
 If setNewImageSem has been called, this function does a semGive on each new image
 Images can be accessed by calling getImage()
Task spawned by AxisCamera constructor to receive images from cam If setNewImageSem has been called this function does a semGive on each new image Images can be accessed by calling getImage ()
// Loop on trying to setup the camera connection. This happens in a background // thread so it shouldn't effect the operation of user programs. // Don't hammer the camera if it isn't ready.