LibMultiSense
LibMultiSense Documentation
|
Class used to store a specific lighting configuration. More...
#include <MultiSenseTypes.hh>
Public Member Functions | |
void | setFlash (bool onOff) |
Turn on/off light flashing. More... | |
bool | getFlash () const |
Get the current lighting flash setting. More... | |
bool | setDutyCycle (float percent) |
Set a sensors duty cycle in terms of percent for all the on-board lights. More... | |
bool | setDutyCycle (uint32_t i, float percent) |
Set a sensors duty cycle in terms of percent for a specific light based off its index. More... | |
float | getDutyCycle (uint32_t i) const |
Get the current duty cycle in terms of percent for a specific light. More... | |
Config () | |
Default constructor. More... | |
Private Attributes | |
bool | m_flashEnabled |
std::vector< float > | m_dutyCycle |
Class used to store a specific lighting configuration.
Member of this class are set and queried via set and get methods. This class is used as an input to a channel object to query and set lighting parameters.
Example code to query a lighting configuration:
Example code to set a lighting configuration:
Definition at line 1988 of file MultiSenseTypes.hh.
|
inline |
Default constructor.
Flashing is disabled and all lights are off
Definition at line 2067 of file MultiSenseTypes.hh.
|
inline |
Get the current duty cycle in terms of percent for a specific light.
i | The index of the light to query |
Definition at line 2057 of file MultiSenseTypes.hh.
|
inline |
Get the current lighting flash setting.
Definition at line 2007 of file MultiSenseTypes.hh.
|
inline |
Set a sensors duty cycle in terms of percent for all the on-board lights.
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
Definition at line 2017 of file MultiSenseTypes.hh.
|
inline |
Set a sensors duty cycle in terms of percent for a specific light based off its index.
i | The index of the light to configure |
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
Definition at line 2038 of file MultiSenseTypes.hh.
|
inline |
Turn on/off light flashing.
During flashing lights are only on when the image sensor is exposing. This significantly reduces the sensor power consumption
onOff | A boolean flag to enable or disable flashing |
Definition at line 1999 of file MultiSenseTypes.hh.
|
private |
Definition at line 2072 of file MultiSenseTypes.hh.
|
private |
Definition at line 2067 of file MultiSenseTypes.hh.