Skip to content
Snippets Groups Projects
Commit 30165508 authored by Jerome Locatelli's avatar Jerome Locatelli
Browse files

get x and y size off camera image for saving data in nexus file

parent a69f67e4
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@ DirectCamera::DirectCamera(const string& name) :
exposureTime.init(this, SAVE, "exposure_time");
exposureTime.setUnit("s");
rgbData.init(this, NOSAVE, "rgb_data");
xSize.init(this, NOSAVE, "xsize");
ySize.init(this, NOSAVE, "ysize");
registerFunction(TYPE);
......@@ -62,6 +64,8 @@ DirectCamera::~DirectCamera() {
* postConfiguration
*/
void DirectCamera::postConfiguration() {
xSize = m_Driver->width();
ySize = m_Driver->height();
registerUpdater(m_Driver->RGBData, &DirectCamera::updateRGBData, this);
}
......
......@@ -70,6 +70,8 @@ public:
Property<float64> exposureTime;
Property<float64, SETPOINT> position;
Property<string> rgbData;
Property<int32> xSize;
Property<int32> ySize;
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment