Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
NavigationSensor.h
1#pragma once
2#include "../RawDataSensor/RawDataSensor.h"
3#include "FilterType.h"
4
5using namespace std;
6
7#ifdef NAVIGATIONSENSOR_EXPORTS
8#define NAVIGATIONSENSOR __declspec(dllexport)
9#else
10#define NAVIGATIONSENSOR __declspec(dllimport)
11#endif
12
13#define SECTORS_COUNT 264
14#define IMAGE_SEGMENT_SIZE 20
15#define PIXELS_PER_SEGMENT 640
16
17
18#define ZERO_TO_ZERO_POINT_ZERO_FIVE_AT_TWENTY_HZ 2
19#define ZERO_TO_ZERO_POINT_ZERO_TWENTYFIVE_AT_TEN_HZ 3
20
21typedef int PAGE_INDEX;
22#define CUSTOMIZE_LOGO_PAGE 0
23#define OPERATING_STATUS_PAGE 1
24#define WMS_STATUS_PAGE 2
25#define ETH_USB_CONNECT_STATUS_PAGE 3
26#define NETWORK_INFORMATION_PAGE 4
27#define BLUETHOOT_CONNECTION_PAGE 5
28
29typedef unsigned int PAGE_DIRECTION;
30#define NORMAL 0
31#define UPSIDE_DOWN 1
32
33typedef unsigned int DISPLAY_MODE;
34#define NORMAL_MODE 0
35#define ON_MODE 1
36#define OFF_MODE 2
37
38typedef uint16_t IMAGE_PIXEL;
39typedef vector<IMAGE_PIXEL> LOGO_IMAGE_SEGMENT;
40
41class NAVIGATIONSENSOR NavigationSensor : public RawDataSensor
42{
43public:
48
53
58 NavigationSensor(BaseCommunication* comm);
59
65 ConfigurationResult SetAngularResolution(ANGULAR_RESOLUTION pResolution);
66
72 FilterType GetFilterType();
77 ConfigurationResult SetFilterType(FilterType pFilterType);
78
83 PAGE_INDEX GetDisplayPageIndex();
84
90 ConfigurationResult SetDisplayPageIndex(PAGE_INDEX pPageIndex);
91
96 PAGE_DIRECTION GetDisplayPageDirection();
97
103 ConfigurationResult SetDisplayPageDirection(PAGE_DIRECTION pPageDirection);
104
105
106
111 DISPLAY_MODE GetDisplayMode();
112
113
119 ConfigurationResult SetDisplayMode(DISPLAY_MODE pdisplayMode);
120
125 vector<LOGO_IMAGE_SEGMENT> GetLogoImage();
126
127
133 ConfigurationResult SetLogoImage(vector<LOGO_IMAGE_SEGMENT> pLogoImage);
134
139 ConfigurationResult ResetLogoImage();
140
145 vector<unsigned int> GetWms() ;
146
152
159
165
171
172 // DEPRECATED METHOD
173
179 [[deprecated("Use of this method is deprecated in Navigation sensor")]]
180 ConfigurationResult SetImmunityLevel(int pImmunityLevel) { return NULL; }
181
186 [[deprecated("Use of this method is deprecated in Navigation sensor")]]
187 unsigned int GetImmunityLevel() { return -1; }
188
189
190private:
191 string GetFilter = { 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72 };
192 string GetPageIndex = { 0x47, 0x65, 0x74, 0x50, 0x49, 0x6E, 0x64, 0x65, 0x78 };
193 string GetPageDirection = { 0x47, 0x65, 0x74, 0x50, 0x44, 0x69, 0x72 };
194 string GetCustomizedLogoImage = { 0x47, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x49, 0x6D, 0x67 };
195 string GetDisplayPageMode = { 0x47, 0x65, 0x74, 0x50, 0x4D, 0x6F, 0x64, 0x65 };
196 string GetWmsValue = { 0x47, 0x65, 0x74, 0x57, 0x6D, 0x73 };
197
198 string SetFilter = { 0x53, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72 };
199 string SetPageIndex = { 0x53, 0x65, 0x74, 0x50, 0x49, 0x6E, 0x64, 0x65, 0x78 };
200 string SetPageDirection = { 0x53, 0x65, 0x74, 0x50, 0x44, 0x69, 0x72 };
201 string SetCustomizedLogoImage = { 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x49, 0x6D, 0x67 };
202 string SetDisplayPageMode = { 0x53, 0x65, 0x74, 0x50, 0x4D, 0x6F, 0x64, 0x65 };
203
204};
205
Helper to encapsulate the the raw data error.
Definition FilterType.h:19
Definition NavigationSensor.h:42
ConfigurationResult SetImmunityLevel(int pImmunityLevel)
Sets the sensor's immunity level.
Definition NavigationSensor.h:180
unsigned int GetImmunityLevel()
Gets the immunity level.
Definition NavigationSensor.h:187
Helper to encapsulate the contamination threshold.
Definition ContaminationStatus.h:12
Definition of the Raw data sensor services. This header will let the programmer to handle all the req...
Definition RawDataSensor.h:61
SensorLeds GetSensorLeds()
Gets the sensor's leds status.
Definition RawDataSensor.cpp:650
SensorLamps GetSensorLamps()
Gets the sensor lamps status.
Definition RawDataSensor.cpp:673
ContaminationStatus GetContaminationStatus()
Gets the contamination status.
Definition RawDataSensor.cpp:520
ConfigurationResult SetSensorLeds(SensorLeds pLeds)
Sets the sensors external leds status (ON or OFF)
Definition RawDataSensor.cpp:1261
ConfigurationResult SetAngularResolution(ANGULAR_RESOLUTION pResolution)
Sets the angle resolution. Can be either ZERO_TO_ZERO_POINT_TWO_AT_EIGHTY_HZ or ZERO_TO_ZERO_POINT_ON...
Definition RawDataSensor.cpp:1028
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 configuration result.
Definition ConfigurationResult.h:15