Pelco Class Reference

Inheritance diagram for Pelco:
Inheritance graph
[legend]
Collaboration diagram for Pelco:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Pelco (OptionManager &mgr, const std::string &descrName="Pelco PTZ Controller", const std::string &tagName="PelcoPTZ", const char *defdev="/dev/ttyS0", const int cameraAddr=1)
 Default constructor; see ModelComponent.H.
 ~Pelco ()
 Destructor.
virtual void start2 ()
 This is called from within start() after the subcomponents have started.
bool movePanTilt (const int pan, const int tilt, bool relative=false, const int panSpeed=5, const int tiltSpeed=5)
 Moves the camera, ptz.
bool resetPanTilt ()
 Reset the pan tilt.
bool zoom (const int val, bool relative=false)
 zoom to a given value with a given speed
bool setFocus (const int val, bool relative=false)
 set focus
bool stop ()
 stop all
int sendRawCmd (const unsigned char byte1, const unsigned char byte2, const unsigned char byte3, const unsigned char byte4)

Protected Attributes

nub::soft_ref< SerialitsPort
 Send the packet to the serial port.

Detailed Description

Definition at line 47 of file Pelco.H.


Constructor & Destructor Documentation

Pelco::Pelco ( OptionManager mgr,
const std::string descrName = "Pelco PTZ Controller",
const std::string tagName = "PelcoPTZ",
const char *  defdev = "/dev/ttyS0",
const int  cameraAddr = 1 
)

Default constructor; see ModelComponent.H.

*** Protol P for now ***//

Definition at line 47 of file Pelco.C.

References ModelComponent::addSubComponent(), and itsPort.

Pelco::~Pelco (  ) 

Destructor.

Definition at line 62 of file Pelco.C.


Member Function Documentation

bool Pelco::movePanTilt ( const int  pan,
const int  tilt,
bool  relative = false,
const int  panSpeed = 5,
const int  tiltSpeed = 5 
)

Moves the camera, ptz.

Returns true on success, false if some serial error occurred.

Definition at line 100 of file Pelco.C.

bool Pelco::resetPanTilt (  ) 

Reset the pan tilt.

Definition at line 108 of file Pelco.C.

bool Pelco::setFocus ( const int  val,
bool  relative = false 
)

set focus

Definition at line 123 of file Pelco.C.

void Pelco::start2 (  )  [virtual]

This is called from within start() after the subcomponents have started.

Reimplemented from ModelComponent.

Definition at line 95 of file Pelco.C.

bool Pelco::stop (  ) 

stop all

Reimplemented from ModelComponent.

Definition at line 130 of file Pelco.C.

bool Pelco::zoom ( const int  val,
bool  relative = false 
)

zoom to a given value with a given speed

Definition at line 115 of file Pelco.C.


Member Data Documentation

Send the packet to the serial port.

Serial port to use

Definition at line 84 of file Pelco.H.

Referenced by Pelco().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3