Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::FlirThermalCameraSerialControl Class Reference

this class is used for serial communication with the FLIR Tau 320 Thermal camera More...

#include <VideoSource/FlirThermalCameraSerialControl.hh>

+ Collaboration diagram for BIAS::FlirThermalCameraSerialControl:

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 &degree)
 
FLIR_STATUS_MESSAGE GetSerialNumber (std::string &serial)
 
FLIR_STATUS_MESSAGE GetSpotMeterCelcius (double &degree)
 
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_
 

Detailed Description

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.

Date
Jan 12, 2011
Author
ischiller

Definition at line 57 of file FlirThermalCameraSerialControl.hh.

Constructor & Destructor Documentation

FlirThermalCameraSerialControl::FlirThermalCameraSerialControl ( )

Definition at line 45 of file FlirThermalCameraSerialControl.cpp.

FlirThermalCameraSerialControl::~FlirThermalCameraSerialControl ( )
virtual

Definition at line 52 of file FlirThermalCameraSerialControl.cpp.

Member Function Documentation

FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::CheckCameraReply_ ( unsigned char *  buf)
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().

FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetAnswer_ ( unsigned char *  buf,
int  length,
bool  wait = false 
)
protected

Definition at line 832 of file FlirThermalCameraSerialControl.cpp.

FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSensorTemp ( double &  degree)
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSerialNumber ( std::string &  serial)
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::GetSpotMeterCelcius ( double &  degree)
bool BIAS::FlirThermalCameraSerialControl::IsConnected ( )
inline
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SendCommand_ ( unsigned char *  buf,
int  length 
)
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)
FLIR_STATUS_MESSAGE FlirThermalCameraSerialControl::SetSpotMeterMode ( unsigned  spotmeter)
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)

Member Data Documentation

bool BIAS::FlirThermalCameraSerialControl::connected_
protected

Definition at line 135 of file FlirThermalCameraSerialControl.hh.

BIAS::SerialPortIO BIAS::FlirThermalCameraSerialControl::serialIO_
protected

Definition at line 134 of file FlirThermalCameraSerialControl.hh.

std::string BIAS::FlirThermalCameraSerialControl::serialNumber_
protected

Definition at line 136 of file FlirThermalCameraSerialControl.hh.


The documentation for this class was generated from the following files: