MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setColorManualExposure

Method setColorManualExposure

src/libfreenect2.cpp:773–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void Freenect2DeviceImpl::setColorManualExposure(float integration_time_ms, float analog_gain)
774{
775 CommandTransaction::Result result;
776 command_tx_.execute(ColorSettingCommand(COLOR_SETTING_SET_ACS, 0u), result);
777 command_tx_.execute(ColorSettingCommand(COLOR_SETTING_SET_EXPOSURE_MODE, 4u), result); // 4 == Fully manual
778 command_tx_.execute(ColorSettingCommand(COLOR_SETTING_SET_INTEGRATION_TIME, integration_time_ms), result);
779 command_tx_.execute(ColorSettingCommand(COLOR_SETTING_SET_ANALOG_GAIN, analog_gain), result);
780}
781
782void Freenect2DeviceImpl::setColorSetting(ColorSettingCommandType cmd, uint32_t value)
783{

Callers

nothing calls this directly

Calls 2

ColorSettingCommandClass · 0.85
executeMethod · 0.45

Tested by

no test coverage detected