Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   FRC Vision Undeclared Functions (http://www.chiefdelphi.com/forums/showthread.php?t=89672)

TodBringer 20-01-2011 17:47

FRC Vision Undeclared Functions
 
We're having trouble locating the library housing the functions related the camera. We have included nivision.h, but we need nivision.a according to the pdf spec.

dysxqer 20-01-2011 20:37

Re: FRC Vision Undeclared Functions
 
Quote:

Originally Posted by TodBringer (Post 1004485)
We're having trouble locating the library housing the functions related the camera. We have included nivision.h, but we need nivision.a according to the pdf spec.

Are you sure what you need isn't located in the vision folder in WPILib?

TodBringer 22-01-2011 10:49

Re: FRC Vision Undeclared Functions
 
Quote:

Originally Posted by dysxqer (Post 1004607)
Are you sure what you need isn't located in the vision folder in WPILib?

We found a .pdf documenting how to use the camera, primarily how to stream images to the netbook. It uses functions like frcStartImageAcquisition() and frcStartPCVideoServer().

The AxisCamera.h in WPILib.h doesn't have anything to do with streaming images, so what is the header file that does?

jwakeman 22-01-2011 11:14

Re: FRC Vision Undeclared Functions
 
To start streaming video to the classmate all you have to do is get an instance of the AxisCamera object. If you look at the implementation of AxisCamera::GetInstance() and trace the functions it calls you will see it automatically sets up a pc video server object and starts it up. Assuming you had a class named LogoVision that inherited from SimpleRobot the following code would be enough to start streaming video to your classmate once you entered autonomous mode. The api's you mentioned are at a lower level than you need to be at.

Code:

void LogoVision::Autonomous()
{
        AxisCamera& camera = AxisCamera::GetInstance();
       
        while(IsAutonomous())
        {
        }       
}



All times are GMT -5. The time now is 13:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi