


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< Serial > | itsPort |
| Send the packet to the serial port. | |
Definition at line 47 of file Pelco.H.
| 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.
| bool Pelco::movePanTilt | ( | const int | pan, | |
| const int | tilt, | |||
| bool | relative = false, |
|||
| const int | panSpeed = 5, |
|||
| const int | tiltSpeed = 5 | |||
| ) |
| bool Pelco::setFocus | ( | const int | val, | |
| bool | relative = false | |||
| ) |
| void Pelco::start2 | ( | ) | [virtual] |
This is called from within start() after the subcomponents have started.
Reimplemented from ModelComponent.
| bool Pelco::stop | ( | ) |
| bool Pelco::zoom | ( | const int | val, | |
| bool | relative = false | |||
| ) |
nub::soft_ref<Serial> Pelco::itsPort [protected] |
1.6.3