|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
Re: FRC Vision Undeclared Functions
Are you sure what you need isn't located in the vision folder in WPILib?
|
|
#3
|
|||
|
|||
|
Re: FRC Vision Undeclared Functions
Quote:
The AxisCamera.h in WPILib.h doesn't have anything to do with streaming images, so what is the header file that does? |
|
#4
|
|||
|
|||
|
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())
{
}
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|