Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
Vision
PCVideoServer.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) FIRST 2008. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5
/*----------------------------------------------------------------------------*/
6
7
#ifndef __PC_VIDEO_SERVER_H__
8
#define __PC_VIDEO_SERVER_H__
9
10
#include "Task.h"
11
#include <semLib.h>
12
14
#define VIDEO_TO_PC_PORT 1180
15
19
class
PCVideoServer
:
public
ErrorBase
{
20
21
public
:
22
PCVideoServer
();
23
~PCVideoServer
();
24
unsigned
int
Release();
25
void
Start
();
26
void
Stop
();
27
28
private
:
29
static
int
s_ServerTask(
PCVideoServer
*thisPtr);
30
int
ServerTask();
31
int
StartServerTask();
32
33
Task
m_serverTask;
34
SEM_ID m_newImageSem;
35
bool
m_stopServer;
36
};
37
38
#endif
39
PCVideoServer::Start
void Start()
Start sending images to the PC.
Definition:
PCVideoServer.cpp:153
ErrorBase
Definition:
ErrorBase.h:37
PCVideoServer::~PCVideoServer
~PCVideoServer()
Destructor. Stop serving images and destroy this class.
Definition:
PCVideoServer.cpp:77
PCVideoServer::Stop
void Stop()
Stop sending images to the PC.
Definition:
PCVideoServer.cpp:161
Task
Definition:
Task.h:17
PCVideoServer
Definition:
PCVideoServer.h:19
PCVideoServer::PCVideoServer
PCVideoServer()
Constructor.
Definition:
PCVideoServer.cpp:56
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.