Go to Post I have never gone to a FIRST Robotics competition and not had fun. - mathking [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2011, 10:49
TodBringer TodBringer is offline
Registered User
no team
 
Join Date: Jan 2011
Location: US
Posts: 2
TodBringer is an unknown quantity at this point
Re: FRC Vision Undeclared Functions

Quote:
Originally Posted by dysxqer View Post
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2011, 11:14
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
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())
	{
	}	
}
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 15:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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