- added two methods, getExposureTimeRange() and getLatTimeRange() for future

improvement, for ACE camera model the exposuretime range is a real one.
- changed setExposureTime() to take care of camera model, ACE model can be
set simply using the SetExposureTimeAbs().
- changes Makefile for compilation wit Pylon 2.3.3
- removed from BaslerCamera.sip file getImageSize() binding.
- change .gitignore for *.bak file (nedit backup file)
parent a160ce8e
*~
*.swp
*target*
\ No newline at end of file
*.bck
*target*
......@@ -21,6 +21,11 @@ const size_t BASLER_GET_IMAGE_MSG = (yat::FIRST_USER_MSG + 102);
///////////////////////////////////////////////////////////
#if defined (__GNUC__) && (__GNUC__ == 3) && defined (__ELF__)
# define GENAPI_DECL __attribute__((visibility("default")))
# define GENAPI_DECL_ABSTRACT __attribute__((visibility("default")))
#endif
#include <pylon/PylonIncludes.h>
#include <pylon/gige/BaslerGigEDeviceInfo.h>
#include <stdlib.h>
......@@ -118,6 +123,9 @@ class Camera : public yat::Task
void setLatTime(double lat_time);
void getLatTime(double& lat_time);
void getExposureTimeRange(double& min_expo, double& max_expo) const;
void getLatTimeRange(double& min_lat, double& max_lat) const;
void setNbFrames(int nb_frames);
void getNbFrames(int& nb_frames);
void getNbHwAcquiredFrames(int &nb_acq_frames);
......
......@@ -37,6 +37,9 @@ namespace Basler
void setLatTime(double lat_time);
void getLatTime(double& lat_time /Out/);
void getExposureTimeRange(double& min_expo /Out/, double& max_expo /Out/) const;
void getLatTimeRange(double& min_lat /Out/, double& max_lat /Out/) const;
void setNbFrames(int nb_frames);
void getNbFrames(int& nb_frames /Out/);
......
This diff is collapsed.
......@@ -354,10 +354,14 @@ void SyncCtrlObj::getNbHwFrames(int& nb_frames)
//-----------------------------------------------------
void SyncCtrlObj::getValidRanges(ValidRangesType& valid_ranges)
{
double min_time = 10e-9;
double max_time = 1e6;
double min_time;
double max_time;
m_cam.getExposureTimeRange(min_time, max_time);
valid_ranges.min_exp_time = min_time;
valid_ranges.max_exp_time = max_time;
m_cam.getLatTimeRange(min_time, max_time);
valid_ranges.min_lat_time = min_time;
valid_ranges.max_lat_time = max_time;
}
......
......@@ -3,8 +3,11 @@ basler-objs = BaslerCamera.o BaslerInterface.o
SRCS = $(basler-objs:.o=.cpp)
CXXFLAGS += -I../include -I../../../hardware/include -I../../../common/include \
-I/opt/pylon/include -I/opt/pylon/include/genicam -DUSE_GIGE -Wall -pthread -fPIC -g \
-I../../../../YAT/include
-I/opt/pylon/include \
-I/opt/pylon/include/genicam \
-I/opt/pylon/genicam/library/CPP/include \
-I../../../../YAT/include \
-DUSE_GIGE -Wall -pthread -fPIC -g
all: Basler.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment