Basic Image AlgorithmS Library
2.8.0
|
this class is used for serial communication with the FLIR Tau 320 Thermal camera More...
#include <VideoSource/FlirThermalCameraSerialControl.hh>
Public Member Functions | |
FLIR_STATUS_MESSAGE | ConnectCamera (std::string port) |
connect over serial port More... | |
FLIR_STATUS_MESSAGE | DisconnectCamera () |
disconnnect camera control More... | |
FlirThermalCameraSerialControl () | |
FLIR_STATUS_MESSAGE | GetSensorTemp (double °ree) |
FLIR_STATUS_MESSAGE | GetSerialNumber (std::string &serial) |
FLIR_STATUS_MESSAGE | GetSpotMeterCelcius (double °ree) |
bool | IsConnected () |
check whether camera control is connected More... | |
FLIR_STATUS_MESSAGE | SetAGCAlgorithm (unsigned algo) |
Set the algorithm for Automatic Gain Control. More... | |
FLIR_STATUS_MESSAGE | SetBrightness (unsigned brigthness) |
FLIR_STATUS_MESSAGE | SetColoring (unsigned color) |
set different color shemes allowed range 0,...,12 More... | |
FLIR_STATUS_MESSAGE | SetContrast (unsigned contrast) |
FLIR_STATUS_MESSAGE | SetDefaults () |
set default camera parameters More... | |
FLIR_STATUS_MESSAGE | SetExternalSync (unsigned sync) |
sets the gain mode More... | |
FLIR_STATUS_MESSAGE | SetFFCInterval (unsigned interval, unsigned intervalLowGain) |
Set the flat field correction interval in frames. More... | |
FLIR_STATUS_MESSAGE | SetFFCMode (unsigned mode) |
Set the flat field correction allowed values 0,1,2. More... | |
FLIR_STATUS_MESSAGE | SetFFCTempChange (unsigned tmpChange, unsigned tmpChangeLowGain) |
Set the flat field correction max temp change. More... | |
FLIR_STATUS_MESSAGE | SetGainMode (unsigned mode) |
sets the gain mode More... | |
FLIR_STATUS_MESSAGE | SetOptimization (unsigned optimization) |
FLIR_STATUS_MESSAGE | SetSpotMeterDisplay (unsigned spotmeter) |
FLIR_STATUS_MESSAGE | SetSpotMeterMode (unsigned spotmeter) |
FLIR_STATUS_MESSAGE | SetVideoMode (unsigned level) |
allowed values are 0,1,4,8 0=real time 1 = freeze frame 4 = 2x zoom 8 = 4x zoom More... | |
FLIR_STATUS_MESSAGE | SetVideoOrientation (unsigned orientation) |
set orientation of video allowed range 0,...,4 0 = normal 1 = Invert 2 = Revert 3 = Invert and Revert More... | |
FLIR_STATUS_MESSAGE | SetVideoStandard (unsigned std) |
set the video standard 0=NTSC 1=PAL More... | |
std::string | StatusCodeToString (FLIR_STATUS_MESSAGE code) |
virtual | ~FlirThermalCameraSerialControl () |
Protected Member Functions | |
FLIR_STATUS_MESSAGE | CheckCameraReply_ (unsigned char *buf) |
FLIR_STATUS_MESSAGE | GetAnswer_ (unsigned char *buf, int length, bool wait=false) |
FLIR_STATUS_MESSAGE | SendCommand_ (unsigned char *buf, int length) |
Protected Attributes | |
bool | connected_ |
BIAS::SerialPortIO | serialIO_ |
std::string | serialNumber_ |
this class is used for serial communication with the FLIR Tau 320 Thermal camera
Use the Set functions to set values to the camera such as FCCMode, Color etc.
Definition at line 57 of file FlirThermalCameraSerialControl.hh.
FlirThermalCameraSerialControl::FlirThermalCameraSerialControl | ( | ) |
Definition at line 45 of file FlirThermalCameraSerialControl.cpp.
|
virtual |
Definition at line 52 of file FlirThermalCameraSerialControl.cpp.
|
protected |
Definition at line 842 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::ConnectCamera | ( | std::string | port | ) |
connect over serial port
Definition at line 58 of file FlirThermalCameraSerialControl.cpp.
References BIAS::SPPM_NoParity.
Referenced by wxTauControlFrame::OnConnect().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::DisconnectCamera | ( | ) |
disconnnect camera control
Definition at line 76 of file FlirThermalCameraSerialControl.cpp.
Referenced by wxTauControlFrame::OnClose(), and wxTauControlFrame::OnConnect().
|
protected |
Definition at line 832 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSensorTemp | ( | double & | degree | ) |
Definition at line 757 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSerialNumber | ( | std::string & | serial | ) |
Definition at line 90 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnConnect().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSpotMeterCelcius | ( | double & | degree | ) |
Definition at line 705 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnGetSpotMeterValue().
|
inline |
check whether camera control is connected
Definition at line 67 of file FlirThermalCameraSerialControl.hh.
Referenced by wxTauControlFrame::OnAlgorithm(), wxTauControlFrame::OnClose(), wxTauControlFrame::OnConnect(), wxTauControlFrame::OnExternalSync(), wxTauControlFrame::OnGainMode(), wxTauControlFrame::OnGetSpotMeterValue(), wxTauControlFrame::OnOperationMode(), wxTauControlFrame::OnOrientation(), wxTauControlFrame::OnPolarity(), wxTauControlFrame::OnReset(), wxTauControlFrame::OnSetFFC(), wxTauControlFrame::OnSetSpotMeterMode(), wxTauControlFrame::OnSpotMeterDisplay(), wxTauControlFrame::OnVideoStandard(), and wxTauControlFrame::OnZoom().
|
protected |
Definition at line 824 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetAGCAlgorithm | ( | unsigned | algo | ) |
Set the algorithm for Automatic Gain Control.
Definition at line 504 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnAlgorithm().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetBrightness | ( | unsigned | brigthness | ) |
Definition at line 819 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetColoring | ( | unsigned | color | ) |
set different color shemes allowed range 0,...,12
Definition at line 204 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnPolarity().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetContrast | ( | unsigned | contrast | ) |
Definition at line 814 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetDefaults | ( | ) |
set default camera parameters
Definition at line 166 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnReset().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetExternalSync | ( | unsigned | sync | ) |
sets the gain mode
Definition at line 424 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnExternalSync().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetFFCInterval | ( | unsigned | interval, |
unsigned | intervalLowGain | ||
) |
Set the flat field correction interval in frames.
Definition at line 295 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnSetFFC().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetFFCMode | ( | unsigned | mode | ) |
Set the flat field correction allowed values 0,1,2.
Definition at line 249 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnSetFFC().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetFFCTempChange | ( | unsigned | tmpChange, |
unsigned | tmpChangeLowGain | ||
) |
Set the flat field correction max temp change.
Definition at line 339 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnSetFFC().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetGainMode | ( | unsigned | mode | ) |
sets the gain mode
Definition at line 384 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnGainMode().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetOptimization | ( | unsigned | optimization | ) |
Definition at line 809 of file FlirThermalCameraSerialControl.cpp.
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetSpotMeterDisplay | ( | unsigned | spotmeter | ) |
Definition at line 665 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnSpotMeterDisplay().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetSpotMeterMode | ( | unsigned | spotmeter | ) |
Definition at line 625 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnSetSpotMeterMode().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetVideoMode | ( | unsigned | level | ) |
allowed values are 0,1,4,8 0=real time 1 = freeze frame 4 = 2x zoom 8 = 4x zoom
Definition at line 463 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnOperationMode(), and wxTauControlFrame::OnZoom().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetVideoOrientation | ( | unsigned | orientation | ) |
set orientation of video allowed range 0,...,4 0 = normal 1 = Invert 2 = Revert 3 = Invert and Revert
Definition at line 545 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnOrientation().
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetVideoStandard | ( | unsigned | std | ) |
set the video standard 0=NTSC 1=PAL
Definition at line 586 of file FlirThermalCameraSerialControl.cpp.
References BIAS::Checksum::CalcCRC_CCITT16().
Referenced by wxTauControlFrame::OnVideoStandard().
std::string FlirThermalCameraSerialControl::StatusCodeToString | ( | FLIR_STATUS_MESSAGE | code | ) |
Definition at line 858 of file FlirThermalCameraSerialControl.cpp.
Referenced by wxTauControlFrame::OnAlgorithm(), wxTauControlFrame::OnExternalSync(), wxTauControlFrame::OnGainMode(), wxTauControlFrame::OnGetSpotMeterValue(), wxTauControlFrame::OnOrientation(), wxTauControlFrame::OnPolarity(), wxTauControlFrame::OnReset(), wxTauControlFrame::OnSetSpotMeterMode(), wxTauControlFrame::OnSpotMeterDisplay(), wxTauControlFrame::OnVideoStandard(), and wxTauControlFrame::OnZoom().
|
protected |
Definition at line 135 of file FlirThermalCameraSerialControl.hh.
|
protected |
Definition at line 134 of file FlirThermalCameraSerialControl.hh.
|
protected |
Definition at line 136 of file FlirThermalCameraSerialControl.hh.