4#include "../StarfleetToolbox/BaseCommunication.h"
5#include "../StarfleetToolbox/BaseSensor.h"
6#include "NetworkInformation.h"
8#include "ContaminationThreshold.h"
9#include "ContaminationStatus.h"
10#include "SoftwareVersion.h"
11#include "../StarfleetToolbox/BaseDataExtractor.h"
12#include "RawDataError.h"
13#include "SensorLeds.h"
14#include "SensorLamps.h"
15#include "../StarfleetToolbox/ConfigurationResult.h"
19#ifdef RAWDATASENSOR_EXPORTS
20#define RAWDATASENSOR __declspec(dllexport)
22#define RAWDATASENSOR __declspec(dllimport)
34typedef int SCAN_PACKET_TYPE;
36#define DISTANCE_INTENSITY 1
38typedef int ANGULAR_RESOLUTION;
39#define ZERO_TO_ZERO_POINT_TWO_AT_EIGHTY_HZ 0
40#define ZERO_TO_ZERO_POINT_ONE_AT_FOURTY_HZ 1
42typedef int SCANNING_DIRECTION;
44#define COUNTER_CLOCKWISE 1
46typedef int FILTER_STATUS;
50typedef int WINDOW_CALIBRATION;
60class RAWDATASENSOR
RawDataSensor :
public BaseSensor,
public BaseDataExtractor
84 RawData ExtractData(vector<string>pDataToExtract);
91 bool IsCommandAcknowledgment(
string pDataToVerify);
98 bool IsHeader(
string pDataToVerify);
105 bool IsEndOfPacket(
string pDataToVerify);
112 bool IsFirstPacket(
string pDataToVerify);
118 int GetPacketHeaderSizeToRead();
124 int CountToReadForLength(
char* pHeaderBuffer);
132 int GetPacketLengthToRead(
char* pLenHeaderBuffer,
int pPacketType);
172 PROTOCOL GetRawDataExchangeMode();
178 SCAN_PACKET_TYPE GetDataPacketType();
184 ANGULAR_RESOLUTION GetAngularResolution();
190 SCANNING_DIRECTION GetScanningDirection();
202 unsigned int GetSkipScan();
208 unsigned int GetImmunityLevel();
232 int GetTemperature();
238 vector<RawDataError> GetErrorLog();
256 long GetRuntimeHours();
262 string GetDeviceName();
268 FILTER_STATUS GetFilterStatus();
274 WINDOW_CALIBRATION GetWindowCalibrationStatus();
396 int _globalWaitTimeout = 0xFFFFFFFF;
405 string ExtractRawResult(
string readWriteResponseCommand,
string command,
string result);
412 bool CheckForDistIntensity(
string toVerify);
414 int _lastPacket = -1;
425 string ExtractCommandResult(
int MODE,
string commandCode,
string result);
429 string GetImmu = { 0x47 ,0x65 ,0x74 ,0x49, 0x6D, 0x6D, 0x75 };
430 string SetImmu = { 0x53, 0x65, 0x74, 0x49, 0x6D, 0x6D, 0x75 };
Helper to encapsulate the Angle range data.
Definition AngleRange.h:13
Helper to encapsulate the contamination threshold.
Definition ContaminationStatus.h:12
Helper to encapsulate the contamination threshold.
Definition ContaminationThreshold.h:12
Helper to encapsulate the network information.
Definition NetworkInformation.h:15
Definition of the Raw data sensor services. This header will let the programmer to handle all the req...
Definition RawDataSensor.h:61
Helper to encapsulate the sensor lamps state.
Definition SensorLamps.h:20
Helper to encapsulate the sensor leds state.
Definition SensorLeds.h:11
Helper to encapsulate the software version.
Definition SoftwareVersion.h:19
Helper to encapsulate the configuration result.
Definition ConfigurationResult.h:15
The base class encapsulating sensor's RAW data.
Definition RawData.h:14