ViSP
2.10.0
|
#include <vpRingLight.h>
Public Member Functions | |
vpRingLight () | |
~vpRingLight () | |
void | pulse () |
void | pulse (double time) |
void | on () |
void | off () |
Ring light management under unix.
Here is an example showing how to synchronise the framegrabbing with the lighting system.
Here is an example showing how to turn on the lighting during 10 seconds.
Definition at line 115 of file vpRingLight.h.
vpRingLight::vpRingLight | ( | ) |
Constructor to acces to the ring light device connected to the parallel port.
Open and initialise the default parallel port device "/dev/parport0" to communicate with the ring light.
vpParallelPortException::opening | If the device used to access to the parallel port can't be opened. A possible reason is that you don't have write access. |
Turn the ring light off.
Definition at line 77 of file vpRingLight.cpp.
References off().
vpRingLight::~vpRingLight | ( | ) |
Destructor to close the device.
Turn the ring light off.
vpParallelPortException::closing | If the device used to access to the parallel port can't be closed. |
Definition at line 90 of file vpRingLight.cpp.
References off().
void vpRingLight::off | ( | ) |
Turn the ring light off.
To turn the ring light on, see on().
Definition at line 209 of file vpRingLight.cpp.
References vpParallelPort::sendData().
Referenced by vpRingLight(), and ~vpRingLight().
void vpRingLight::on | ( | ) |
Turn the ring light on.
To turn the ring light off, see off().
Definition at line 183 of file vpRingLight.cpp.
References vpParallelPort::sendData().
void vpRingLight::pulse | ( | ) |
Activates the ring light by sending a pulse throw the parallel port.
The pulse width is 500 us. This pulse activates a NE555 which turns on on the light during 10ms.
Definition at line 102 of file vpRingLight.cpp.
References vpParallelPort::sendData().
void vpRingLight::pulse | ( | double | time | ) |
Activates the ring light by sending a pulse throw the parallel port during a specified duration.
time | : Duration in milli-second (ms) during while the light is turned on. |
Definition at line 145 of file vpRingLight.cpp.
References vpParallelPort::sendData().