27 #ifndef FLIRTHERMALCAMERASERIALCONTROL_HH_
28 #define FLIRTHERMALCAMERASERIALCONTROL_HH_
30 #include <bias_config.h>
32 #include <Utils/SerialPortIO.hh>
36 enum BIASVideoSource_EXPORT FLIR_STATUS_MESSAGE{
43 CAM_UNDEFINED_PROCESS_ERROR,
44 CAM_UNDEFINED_FUNCTION_ERROR,
63 FLIR_STATUS_MESSAGE ConnectCamera(std::string port);
65 FLIR_STATUS_MESSAGE DisconnectCamera();
70 FLIR_STATUS_MESSAGE SetDefaults();
77 FLIR_STATUS_MESSAGE SetVideoMode(
unsigned level);
81 FLIR_STATUS_MESSAGE SetFFCMode(
unsigned mode);
83 FLIR_STATUS_MESSAGE SetFFCInterval(
unsigned interval,
unsigned intervalLowGain);
85 FLIR_STATUS_MESSAGE SetFFCTempChange(
unsigned tmpChange,
unsigned tmpChangeLowGain);
88 FLIR_STATUS_MESSAGE SetAGCAlgorithm(
unsigned algo);
92 FLIR_STATUS_MESSAGE SetColoring(
unsigned color);
100 FLIR_STATUS_MESSAGE SetVideoOrientation(
unsigned orientation);
105 FLIR_STATUS_MESSAGE SetVideoStandard(
unsigned std);
107 FLIR_STATUS_MESSAGE SetOptimization(
unsigned optimization);
109 FLIR_STATUS_MESSAGE SetContrast(
unsigned contrast);
110 FLIR_STATUS_MESSAGE SetBrightness(
unsigned brigthness);
113 FLIR_STATUS_MESSAGE SetGainMode(
unsigned mode);
115 FLIR_STATUS_MESSAGE SetExternalSync(
unsigned sync);
118 FLIR_STATUS_MESSAGE SetSpotMeterMode(
unsigned spotmeter);
120 FLIR_STATUS_MESSAGE SetSpotMeterDisplay(
unsigned spotmeter);
122 FLIR_STATUS_MESSAGE GetSpotMeterCelcius(
double& degree);
123 FLIR_STATUS_MESSAGE GetSensorTemp(
double& degree);
125 FLIR_STATUS_MESSAGE GetSerialNumber(std::string &serial);
126 std::string StatusCodeToString(FLIR_STATUS_MESSAGE code);
129 FLIR_STATUS_MESSAGE CheckCameraReply_(
unsigned char* buf);
130 FLIR_STATUS_MESSAGE SendCommand_(
unsigned char* buf,
int length);
131 FLIR_STATUS_MESSAGE GetAnswer_(
unsigned char* buf,
int length,
bool wait=
false);
bool IsConnected()
check whether camera control is connected
Communication over the serial port, use OpenPort with e.g.
BIAS::SerialPortIO serialIO_
this class is used for serial communication with the FLIR Tau 320 Thermal camera
std::string serialNumber_