| Visioscan Set SDK Libraries 1.3.5 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
WNavigationSensor.h
1#pragma once
2
3#include <NavigationSensor.h>
4#include "WFilterType.h"
5#include <List>
6
7#include <CommunicationException.h>
8#include <SensorErrorException.h>
9#include <ThreadCreationException.h>
10#include <BadAcknowledgmentException.h>
11#include <CommunicationException.h>
12#include <ParameterNotSupportedException.h>
13
14 using namespace WBase;
15 using namespace WUtils;
16 using namespace WCommunication;
17 using namespace WToolboxException;
18 using namespace WEnumerations;
19 using namespace System::Collections;
20 using namespace System::Collections::Generic;
21
22 public ref class WNavigationSensor :
23 public WRawDataSensor
24{
25 public:
26 WNavigationSensor() {
27 this->_sensor = (BaseSensor*)new NavigationSensor();
28 }
29
30 WNavigationSensor(WBaseCommunication^ pcomm) : WRawDataSensor(pcomm) {
31 _sensor = (BaseSensor*)new NavigationSensor(pcomm->__nativeCommunication);
32 Communication = pcomm;
33 }
34
35 ~WNavigationSensor() {
36 delete(_sensor);
37 }
38
42 WCommunicationStatus^ Initialize() new {
43 CommunicationStatus status = _sensor->Initialize();
44
45 WCommunicationStatus^ toReturn = gcnew WCommunicationStatus();
46 for (int i = 0; i < status.Channels.size(); i++) {
47 WChannel^ toAdd = gcnew WChannel();
48 toAdd->RawDataAvailability = static_cast<DataAvailabilityEnum>(status.Channels[i].RawDataAvailability);
49 toAdd->Type = static_cast<ChannelTypeEnum>(status.Channels[i].Type);
50
51 toReturn->Channels->Add(toAdd);
52 }
53
54 toReturn->ErrorCode = gcnew WCommunicationErrorCode();
55 toReturn->ErrorCode->ErrorCode = status.ErrorCode.ErrorCode;
56 toReturn->ErrorCode->ErrorMeaning = gcnew String(status.ErrorCode.ErrorMeaning.c_str());
57
58 toReturn->Status = static_cast<ConnectionStatusEnum>(status.Status);
59
60 return toReturn;
61 }
62
63 WFilterType^ GetFilterType() {
64 try {
65 WFilterType^ toReturn = gcnew WFilterType();
66 FilterType toFetch = ((NavigationSensor*)_sensor)->GetFilterType();
67 switch (toFetch.GetFilterMode()) {
68 case MEDIAN_FILTER:
69 toReturn->FilterTypeValue = FilterMode::Median;
70 break;
71 case AVERAGE_FILTER:
72 toReturn->FilterTypeValue = FilterMode::Average;
73 break;
74 case MAX_FILTER:
75 toReturn->FilterTypeValue = FilterMode::Max;
76 break;
77 case COMBO_FILTER:
78 toReturn->FilterTypeValue = FilterMode::Combo;
79 break;
80 }
81
82 toReturn->NumH = toFetch.GetNumH();
83 toReturn->NumS = toFetch.GetNumS();
84
85 return toReturn;
86 }
87 catch (BadAcknowledgmentException e) {
88 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
89 throw toThrow;
90 }
91 catch (CommunicationException e) {
92 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
93 toThrow->ErrorCode = e.GetErrorCode();
94 throw toThrow;
95 }
96 catch (SensorErrorException e) {
97 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
98 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
99 throw toThrow;
100
101 }
102 catch (ThreadCreationException e) {
103 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
104 throw toThrow;
105 }
106 }
107
108 WConfigurationResult^ SetFilterType(WFilterType^ pFilterType) {
109 try {
110 FilterType toSet;
111
112 switch (pFilterType->FilterTypeValue) {
113 case FilterMode::Median:
114 toSet.SetFilterMode(MEDIAN_FILTER);
115 break;
116 case FilterMode::Average:
117 toSet.SetFilterMode(AVERAGE_FILTER);
118 break;
119 case FilterMode::Max:
120 toSet.SetFilterMode(MAX_FILTER);
121 break;
122 case FilterMode::Combo:
123 toSet.SetFilterMode(COMBO_FILTER);
124 break;
125 }
126
127 toSet.SetNumH(pFilterType->NumH);
128 toSet.SetNumS(pFilterType->NumS);
129 return toManagedInstance(&((NavigationSensor*)_sensor)->SetFilterType(toSet));
130 }
131 catch (ParameterNotSupportedException e) {
132 WParameterNotSupportedException^ toThrow = gcnew WParameterNotSupportedException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
133 throw toThrow;
134 }
135 catch (BadAcknowledgmentException e) {
136 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
137 throw toThrow;
138 }
139 catch (CommunicationException e) {
140 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
141 toThrow->ErrorCode = e.GetErrorCode();
142 throw toThrow;
143 }
144 catch (SensorErrorException e) {
145 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
146 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
147 throw toThrow;
148
149 }
150 catch (ThreadCreationException e) {
151 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
152 throw toThrow;
153 }
154 }
155
160 AngularResolution GetAngularResolution() new {
161 try {
162 ANGULAR_RESOLUTION actual = ((NavigationSensor*)_sensor)->GetAngularResolution();
163 if (actual == ZERO_TO_ZERO_POINT_ONE_AT_FOURTY_HZ) {
164 return AngularResolution::ZeroToZeroPointOneAtFourtyHz;
165 }
166 else if (actual == ZERO_TO_ZERO_POINT_TWO_AT_EIGHTY_HZ) {
167 return AngularResolution::ZeroToZeroPointTwoAtEightyHz;
168 }
169 else if (actual == ZERO_TO_ZERO_POINT_ZERO_FIVE_AT_TWENTY_HZ) {
170 return AngularResolution::ZeroToZeroPointZeroFiveAtTwentyHz;
171 }
172 else if (actual == ZERO_TO_ZERO_POINT_ZERO_TWENTYFIVE_AT_TEN_HZ) {
173 return AngularResolution::ZeroToZeroPointZeroTwoFiveAtTenHz;
174 }
175 else if (actual == ZERO_TO_ZERO_POINT_ZERO_SOMETHING_AT_FIFTY_HZ) {
176 return AngularResolution::ZeroToZeroSomethingAtFiftyHz;
177 }
178 }
179 catch (BadAcknowledgmentException e) {
180 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
181 throw toThrow;
182 }
183 catch (CommunicationException e) {
184 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
185 toThrow->ErrorCode = e.GetErrorCode();
186 throw toThrow;
187 }
188 catch (SensorErrorException e) {
189 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
190 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
191 throw toThrow;
192
193 }
194 catch (ThreadCreationException e) {
195 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
196 throw toThrow;
197 }
198 }
199
200
206 WConfigurationResult^ SetAngularResolution(AngularResolution pResolution) new {
207 try {
208 ANGULAR_RESOLUTION toSet = -1;
209 if (pResolution == AngularResolution::ZeroToZeroPointOneAtFourtyHz) {
210 toSet = ZERO_TO_ZERO_POINT_ONE_AT_FOURTY_HZ;
211 }
212 else if(pResolution == AngularResolution::ZeroToZeroPointTwoAtEightyHz) {
213 toSet = ZERO_TO_ZERO_POINT_TWO_AT_EIGHTY_HZ;
214 }
215 else if (pResolution == AngularResolution::ZeroToZeroPointZeroFiveAtTwentyHz) {
216 toSet = ZERO_TO_ZERO_POINT_ZERO_FIVE_AT_TWENTY_HZ;
217 }
218 else if (pResolution == AngularResolution::ZeroToZeroPointZeroTwoFiveAtTenHz) {
219 toSet = ZERO_TO_ZERO_POINT_ZERO_TWENTYFIVE_AT_TEN_HZ;
220 }
221 else if (pResolution == AngularResolution::ZeroToZeroSomethingAtFiftyHz) {
222 toSet = ZERO_TO_ZERO_POINT_ZERO_SOMETHING_AT_FIFTY_HZ;
223 }
224
225 return toManagedInstance(&((NavigationSensor*)_sensor)->SetAngularResolution(toSet));
226 }
227 catch (BadAcknowledgmentException e) {
228 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
229 throw toThrow;
230 }
231 catch (CommunicationException e) {
232 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
233 toThrow->ErrorCode = e.GetErrorCode();
234 throw toThrow;
235 }
236 catch (SensorErrorException e) {
237 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
238 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
239 throw toThrow;
240
241 }
242 catch (ThreadCreationException e) {
243 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
244 throw toThrow;
245 }
246 }
247#ifndef LEUZE
252 DisplayPageIndex GetDisplayPageIndex() {
253 try {
254 PAGE_INDEX actual = ((NavigationSensor*)_sensor)->GetDisplayPageIndex();
255 if (actual == CUSTOMIZE_LOGO_PAGE) {
256 return DisplayPageIndex::CustomLogoPage;
257 }
258 else if (actual == OPERATING_STATUS_PAGE) {
259 return DisplayPageIndex::OperatingStatus;
260 }
261 else if (actual == WMS_STATUS_PAGE) {
262 return DisplayPageIndex::WmsStatus;
263 }
264 else if (actual == ETH_USB_CONNECT_STATUS_PAGE) {
265 return DisplayPageIndex::EthUsbConnectStatus;
266 }
267 else if (actual == NETWORK_INFORMATION_PAGE) {
268 return DisplayPageIndex::NetworkInfo;
269 }
270 else if (actual == BLUETHOOT_CONNECTION_PAGE) {
271 return DisplayPageIndex::BluethootConnection;
272 }
273 }
274 catch (BadAcknowledgmentException e) {
275 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
276 throw toThrow;
277 }
278 catch (CommunicationException e) {
279 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
280 toThrow->ErrorCode = e.GetErrorCode();
281 throw toThrow;
282 }
283 catch (SensorErrorException e) {
284 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
285 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
286 throw toThrow;
287
288 }
289 catch (ThreadCreationException e) {
290 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
291 throw toThrow;
292 }
293 }
294#endif
295#ifndef LEUZE
301 WConfigurationResult^ SetDisplayPageIndex(DisplayPageIndex pPageIndex) {
302 try {
303 PAGE_INDEX toSet = -1;
304 if (pPageIndex == DisplayPageIndex::CustomLogoPage) {
305 toSet = CUSTOMIZE_LOGO_PAGE;
306 }
307 else if (pPageIndex == DisplayPageIndex::OperatingStatus) {
308 toSet = OPERATING_STATUS_PAGE;
309 }
310 else if (pPageIndex == DisplayPageIndex::WmsStatus) {
311 toSet = WMS_STATUS_PAGE;
312 }
313 else if (pPageIndex == DisplayPageIndex::EthUsbConnectStatus) {
314 toSet = ETH_USB_CONNECT_STATUS_PAGE;
315 }
316 else if (pPageIndex == DisplayPageIndex::NetworkInfo) {
317 toSet = NETWORK_INFORMATION_PAGE;
318 }
319 else if (pPageIndex == DisplayPageIndex::BluethootConnection) {
320 toSet = BLUETHOOT_CONNECTION_PAGE;
321 }
322
323 return toManagedInstance(&((NavigationSensor*)_sensor)->SetDisplayPageIndex(toSet));
324 }
325 catch (BadAcknowledgmentException e) {
326 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
327 throw toThrow;
328 }
329 catch (CommunicationException e) {
330 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
331 toThrow->ErrorCode = e.GetErrorCode();
332 throw toThrow;
333 }
334 catch (SensorErrorException e) {
335 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
336 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
337 throw toThrow;
338
339 }
340 catch (ThreadCreationException e) {
341 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
342 throw toThrow;
343 }
344 }
345#endif
346#ifndef LEUZE
351 PageDirection GetDisplayPageDirection() {
352 try {
353 PAGE_DIRECTION actual = ((NavigationSensor*)_sensor)->GetDisplayPageDirection();
354 if (actual == NORMAL) {
355 return PageDirection::Normal;
356 }
357 else if (actual == UPSIDE_DOWN) {
358 return PageDirection::UpsideDown;
359 }
360 }
361 catch (BadAcknowledgmentException e) {
362 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
363 throw toThrow;
364 }
365 catch (CommunicationException e) {
366 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
367 toThrow->ErrorCode = e.GetErrorCode();
368 throw toThrow;
369 }
370 catch (SensorErrorException e) {
371 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
372 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
373 throw toThrow;
374
375 }
376 catch (ThreadCreationException e) {
377 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
378 throw toThrow;
379 }
380 }
381#endif
382#ifndef LEUZE
388 WConfigurationResult^ SetDisplayPageDirection(PageDirection pPageDirection) {
389 try {
390 PAGE_DIRECTION toSet = -1;
391 if (pPageDirection == PageDirection::Normal) {
392 toSet = NORMAL;
393 }
394 else if (pPageDirection == PageDirection::UpsideDown) {
395 toSet = UPSIDE_DOWN;
396 }
397
398 return toManagedInstance(&((NavigationSensor*)_sensor)->SetDisplayPageDirection(toSet));
399 }
400 catch (BadAcknowledgmentException e) {
401 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
402 throw toThrow;
403 }
404 catch (CommunicationException e) {
405 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
406 toThrow->ErrorCode = e.GetErrorCode();
407 throw toThrow;
408 }
409 catch (SensorErrorException e) {
410 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
411 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
412 throw toThrow;
413
414 }
415 catch (ThreadCreationException e) {
416 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
417 throw toThrow;
418 }
419 }
420#endif
421#ifndef LEUZE
426 DisplayMode GetDisplayMode() {
427 try {
428 DISPLAY_MODE actual = ((NavigationSensor*)_sensor)->GetDisplayMode();
429 if (actual == NORMAL_MODE) {
430 return DisplayMode::Normal;
431 }
432 else if (actual == ON_MODE) {
433 return DisplayMode::On;
434 }
435 else if (actual == OFF_MODE) {
436 return DisplayMode::Off;
437 }
438 }
439 catch (BadAcknowledgmentException e) {
440 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
441 throw toThrow;
442 }
443 catch (CommunicationException e) {
444 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
445 toThrow->ErrorCode = e.GetErrorCode();
446 throw toThrow;
447 }
448 catch (SensorErrorException e) {
449 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
450 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
451 throw toThrow;
452
453 }
454 catch (ThreadCreationException e) {
455 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
456 throw toThrow;
457 }
458 }
459#endif
460#ifndef LEUZE
466 WConfigurationResult^ SetDisplayMode(DisplayMode pdisplayMode) {
467 try {
468 DISPLAY_MODE toSet = -1;
469 if (pdisplayMode == DisplayMode::Normal) {
470 toSet = NORMAL;
471 }
472 else if (pdisplayMode == DisplayMode::On) {
473 toSet = ON_MODE;
474 }
475 else if (pdisplayMode == DisplayMode::Off) {
476 toSet = OFF_MODE;
477 }
478
479 return toManagedInstance(&((NavigationSensor*)_sensor)->SetDisplayMode(toSet));
480 }
481 catch (BadAcknowledgmentException e) {
482 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
483 throw toThrow;
484 }
485 catch (CommunicationException e) {
486 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
487 toThrow->ErrorCode = e.GetErrorCode();
488 throw toThrow;
489 }
490 catch (SensorErrorException e) {
491 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
492 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
493 throw toThrow;
494
495 }
496 catch (ThreadCreationException e) {
497 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
498 throw toThrow;
499 }
500 }
501#endif
502#ifndef LEUZE
507 List<List<UInt16>^>^ GetLogoImage() {
508 try {
509 List<List<UInt16>^>^ toReturn = gcnew List<List<UInt16>^>();
510
511 vector<LOGO_IMAGE_SEGMENT> sensorImage = ((NavigationSensor*)_sensor)->GetLogoImage();
512
513 for (int segment = 0; segment < IMAGE_SEGMENT_SIZE; segment++) {
514 List<UInt16>^ segmentOfPixelToAdd = gcnew List<UInt16>();
515 for (int pixel = 0; pixel < PIXELS_PER_SEGMENT; pixel++) {
516 segmentOfPixelToAdd->Add( sensorImage[segment][pixel]);
517 }
518 toReturn->Add(segmentOfPixelToAdd);
519 }
520
521 return toReturn;
522 }
523 catch (BadAcknowledgmentException e) {
524 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
525 throw toThrow;
526 }
527 catch (CommunicationException e) {
528 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
529 toThrow->ErrorCode = e.GetErrorCode();
530 throw toThrow;
531 }
532 catch (SensorErrorException e) {
533 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
534 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
535 throw toThrow;
536
537 }
538 catch (ThreadCreationException e) {
539 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
540 throw toThrow;
541 }
542 }
543#endif
544#ifndef LEUZE
545
551 WConfigurationResult^ SetLogoImage(List<List<UInt16>^>^ logoToFetch) {
552 WConfigurationResult^ toReturn;
553 vector<LOGO_IMAGE_SEGMENT> toFetch;
554
555 try {
556 for each (List<UInt16>^ segment in logoToFetch) {
557 vector<IMAGE_PIXEL> segmentToFetch;
558
559 for each (UInt16 pixel in segment) {
560 segmentToFetch.push_back(pixel);
561 }
562
563 toFetch.push_back(segmentToFetch);
564 }
565 return toManagedInstance(&((NavigationSensor*)_sensor)->SetLogoImage(toFetch));
566 }
567 catch (BadAcknowledgmentException e) {
568 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
569 throw toThrow;
570 }
571 catch (CommunicationException e) {
572 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
573 toThrow->ErrorCode = e.GetErrorCode();
574 throw toThrow;
575 }
576 catch (SensorErrorException e) {
577 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
578 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
579 throw toThrow;
580
581 }
582 catch (ThreadCreationException e) {
583 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
584 throw toThrow;
585 }
586
587
588 return toReturn;
589 }
590#endif
591
592#ifndef LEUZE
597 WConfigurationResult^ ResetLogoImage() {
598
599 try {
600 return toManagedInstance(&((NavigationSensor*)_sensor)->ResetLogoImage());
601 }
602 catch (BadAcknowledgmentException e) {
603 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
604 throw toThrow;
605 }
606 catch (CommunicationException e) {
607 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
608 toThrow->ErrorCode = e.GetErrorCode();
609 throw toThrow;
610 }
611 catch (SensorErrorException e) {
612 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
613 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
614 throw toThrow;
615
616 }
617 catch (ThreadCreationException e) {
618 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
619 throw toThrow;
620 }
621 }
622#endif
627 List<unsigned int>^ GetWms() {
628 try {
629 vector<unsigned int> actual = ((NavigationSensor*)_sensor)->GetWms();
630 List<unsigned int>^ toReturn = gcnew List<unsigned int>();
631
632 for (int i = 0; i < actual.size(); i++) {
633
634 toReturn->Add(actual[i]);
635 }
636
637 return toReturn;
638 }
639 catch (BadAcknowledgmentException e) {
640 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
641 throw toThrow;
642 }
643 catch (CommunicationException e) {
644 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
645 toThrow->ErrorCode = e.GetErrorCode();
646 throw toThrow;
647 }
648 catch (SensorErrorException e) {
649 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
650 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
651 throw toThrow;
652
653 }
654 catch (ThreadCreationException e) {
655 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
656 throw toThrow;
657 }
658 }
659
664 WSensorLeds^ GetSensorLeds() new {
665 try {
666 SensorLeds actual = ((NavigationSensor*)_sensor)->GetSensorLeds();
667 WSensorLeds^ toReturn = gcnew WSensorLeds();
668
669 toReturn->StatusLed = actual.GetStatusLed();
670
671 return toReturn;
672 }
673 catch (BadAcknowledgmentException e) {
674 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
675 throw toThrow;
676 }
677 catch (CommunicationException e) {
678 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
679 toThrow->ErrorCode = e.GetErrorCode();
680 throw toThrow;
681 }
682 catch (SensorErrorException e) {
683 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
684 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
685 throw toThrow;
686
687 }
688 catch (ThreadCreationException e) {
689 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
690 throw toThrow;
691 }
692 }
693
694
700 WConfigurationResult^ SetSensorLeds(WSensorLeds^ pLeds) new {
701 try {
702 SensorLeds toSet;
703
704 toSet.SetStatusLed(pLeds->StatusLed);
705
706 return toManagedInstance(&((NavigationSensor*)_sensor)->SetSensorLeds(toSet));
707 }
708 catch (BadAcknowledgmentException e) {
709 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
710 throw toThrow;
711 }
712 catch (CommunicationException e) {
713 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
714 toThrow->ErrorCode = e.GetErrorCode();
715 throw toThrow;
716 }
717 catch (SensorErrorException e) {
718 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
719 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
720 throw toThrow;
721
722 }
723 catch (ThreadCreationException e) {
724 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
725 throw toThrow;
726 }
727 }
728
729
734 WSensorLamps^ GetSensorLamps() {
735 try {
736 WSensorLamps^ toReturn = gcnew WSensorLamps();
737 SensorLamps actual = ((NavigationSensor*)_sensor)->GetSensorLamps();
738
739 toReturn->Led1 = (LedColor)actual.GetLed1();
740 toReturn->Led2 = (LedColor)actual.GetLed2();
741 toReturn->Led3 = (LedColor)actual.GetLed3();
742 toReturn->Led4 = LedColor::Black;
743
744 return toReturn;
745 }
746 catch (BadAcknowledgmentException e) {
747 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
748 throw toThrow;
749 }
750 catch (CommunicationException e) {
751 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
752 toThrow->ErrorCode = e.GetErrorCode();
753 throw toThrow;
754 }
755 catch (SensorErrorException e) {
756 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
757 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
758 throw toThrow;
759
760 }
761 catch (ThreadCreationException e) {
762 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
763 throw toThrow;
764 }
765 }
766
767 // Command settings management
768 // Data retrieve
773 WNetworkInformation^ GetNetworkInformation() {
774 try {
775 NetworkInformation toFetch = ((NavigationSensor*)_sensor)->GetNetworkInformation();
776
777 WNetworkInformation^ toReturn = gcnew WNetworkInformation();
778 toReturn->DhcpMode = toFetch.GetDhcpMode();
779 toReturn->Gateway = gcnew String(toFetch.GetGateway().c_str());
780 toReturn->IpAddress = gcnew String(toFetch.GetIpAddress().c_str());
781 toReturn->IpPort = toFetch.GetIpPort();
782 toReturn->SubnetMask = gcnew String(toFetch.GetSubnetMask().c_str());
783 toReturn->MacAddress = gcnew String(toFetch.GetMacAddress().c_str());
784
785 return toReturn;
786 }
787 catch (BadAcknowledgmentException e) {
788 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
789 throw toThrow;
790 }
791 catch (CommunicationException e) {
792 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
793 toThrow->ErrorCode = e.GetErrorCode();
794 throw toThrow;
795 }
796 catch (SensorErrorException e) {
797 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
798 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
799 throw toThrow;
800
801 }
802 catch (ThreadCreationException e) {
803 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
804 throw toThrow;
805 }
806 }
807#ifndef LEUZE
812 DisplayWakeUpRange GetDisplayWakeUpRange() {
813 try {
814 OLED_WAKEUP_RANGE actual = ((NavigationSensor*)_sensor)->GetDisplayWakeUpRange();
815 switch (actual) {
816 case 0:
817 return DisplayWakeUpRange::ThreeHundred;
818 case 1:
819 return DisplayWakeUpRange::FiveHundred;
820 case 2:
821 return DisplayWakeUpRange::TenHundred;
822 case 3:
823 return DisplayWakeUpRange::FifteenHundred;
824 case 4:
825 return DisplayWakeUpRange::TwentyHundred;
826 }
827 }
828 catch (BadAcknowledgmentException e) {
829 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
830 throw toThrow;
831 }
832 catch (CommunicationException e) {
833 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
834 toThrow->ErrorCode = e.GetErrorCode();
835 throw toThrow;
836 }
837 catch (SensorErrorException e) {
838 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
839 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
840 throw toThrow;
841
842 }
843 catch (ThreadCreationException e) {
844 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
845 throw toThrow;
846 }
847 }
848#endif
849#ifndef LEUZE
855 WConfigurationResult^ SetDisplayWakeUpRange(DisplayWakeUpRange pWakeupTime) {
856 try {
857 OLED_WAKEUP_RANGE toSet = -1;
858 if (pWakeupTime == DisplayWakeUpRange::ThreeHundred) {
859 toSet = THREE_HUNDRED_MM;
860 }
861 else if (pWakeupTime == DisplayWakeUpRange::FiveHundred) {
862 toSet = FIVE_HUNDRED_MM;
863 }
864 else if (pWakeupTime == DisplayWakeUpRange::TenHundred) {
865 toSet = TEN_HUNDRED_MM;
866 }
867 else if (pWakeupTime == DisplayWakeUpRange::FifteenHundred) {
868 toSet = FIFTEEN_HUNDRED_MM;
869 }
870 else if (pWakeupTime == DisplayWakeUpRange::TwentyHundred) {
871 toSet = TWENTY_HUNDRED_MM;
872 }
873 return toManagedInstance(&((NavigationSensor*)_sensor)->SetDisplayWakeUpRange(toSet));
874 }
875 catch (BadAcknowledgmentException e) {
876 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
877 throw toThrow;
878 }
879 catch (CommunicationException e) {
880 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
881 toThrow->ErrorCode = e.GetErrorCode();
882 throw toThrow;
883 }
884 catch (SensorErrorException e) {
885 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
886 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
887 throw toThrow;
888
889 }
890 catch (ThreadCreationException e) {
891 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
892 throw toThrow;
893 }
894 }
895#endif
896#ifndef LEUZE
897
902 DisplayWakeUpTime GetDisplayWakeUpTime() {
903 try {
904 OLED_WAKEUP_TIME actual = ((NavigationSensor*)_sensor)->GetDisplayWakeUpTime();
905 switch (actual) {
906 case 0:
907 return DisplayWakeUpTime::TwoSec;
908 case 1:
909 return DisplayWakeUpTime::ThreeSec;
910 case 2:
911 return DisplayWakeUpTime::FiveSec;
912 case 3:
913 return DisplayWakeUpTime::TenSec;
914 }
915 }
916 catch (BadAcknowledgmentException e) {
917 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
918 throw toThrow;
919 }
920 catch (CommunicationException e) {
921 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
922 toThrow->ErrorCode = e.GetErrorCode();
923 throw toThrow;
924 }
925 catch (SensorErrorException e) {
926 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
927 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
928 throw toThrow;
929
930 }
931 catch (ThreadCreationException e) {
932 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
933 throw toThrow;
934 }
935 }
936#endif
937#ifndef LEUZE
943 WConfigurationResult^ SetDisplayWakeUpTime(DisplayWakeUpTime pWakeupTime) {
944 try {
945 OLED_WAKEUP_TIME toSet = -1;
946 if (pWakeupTime == DisplayWakeUpTime::TwoSec) {
947 toSet = TWO_SEC;
948 }
949 else if (pWakeupTime == DisplayWakeUpTime::ThreeSec) {
950 toSet = THREE_SEC;
951 }
952 else if (pWakeupTime == DisplayWakeUpTime::FiveSec) {
953 toSet = FIVE_SEC;
954 }
955 else if (pWakeupTime == DisplayWakeUpTime::TenSec) {
956 toSet = TEN_SEC;
957 }
958 return toManagedInstance(&((NavigationSensor*)_sensor)->SetDisplayWakeUpTime(toSet));
959 }
960 catch (BadAcknowledgmentException e) {
961 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
962 throw toThrow;
963 }
964 catch (CommunicationException e) {
965 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
966 toThrow->ErrorCode = e.GetErrorCode();
967 throw toThrow;
968 }
969 catch (SensorErrorException e) {
970 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
971 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
972 throw toThrow;
973
974 }
975 catch (ThreadCreationException e) {
976 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
977 throw toThrow;
978 }
979 }
980#endif
985 TransmissionStatus GetMdiTransmissionStatus() {
986 try {
987 MDI_TRANSMISSION_STATUS actual = ((NavigationSensor*)_sensor)->GetMdiTransmissionStatus();
988 switch (actual) {
989 case 0:
990 return TransmissionStatus::Off;
991 case 1:
992 return TransmissionStatus::On;
993 }
994 }
995 catch (BadAcknowledgmentException e) {
996 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
997 throw toThrow;
998 }
999 catch (CommunicationException e) {
1000 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1001 toThrow->ErrorCode = e.GetErrorCode();
1002 throw toThrow;
1003 }
1004 catch (SensorErrorException e) {
1005 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1006 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
1007 throw toThrow;
1008
1009 }
1010 catch (ThreadCreationException e) {
1011 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1012 throw toThrow;
1013 }
1014 }
1015#ifndef LEUZE
1019 void ShowDeviceIdentification() {
1020 try {
1021 ((NavigationSensor*)_sensor)->ShowDeviceIdentification();
1022 }
1023 catch (BadAcknowledgmentException e) {
1024 WBadAcknowledgmentException^ toThrow = gcnew WBadAcknowledgmentException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1025 throw toThrow;
1026 }
1027 catch (CommunicationException e) {
1028 WCommunicationException^ toThrow = gcnew WCommunicationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1029 toThrow->ErrorCode = e.GetErrorCode();
1030 throw toThrow;
1031 }
1032 catch (SensorErrorException e) {
1033 WSensorException^ toThrow = gcnew WSensorException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1034 toThrow->ErrorCode = gcnew String(e.GetErrorCode().c_str());
1035 throw toThrow;
1036
1037 }
1038 catch (ThreadCreationException e) {
1039 WThreadCreationException^ toThrow = gcnew WThreadCreationException(gcnew String(e.what()), gcnew String(e.GetTranslateCode().c_str()));
1040 throw toThrow;
1041 }
1042 }
1043#endif
1044};
1045
WUtils
Definition WAvailableResolution.h:7
WToolboxException
Definition WBadAcknowledgmentException.h:3
WBase
Definition WBaseCommunication.h:16
WEnumerations
Definition WEnums.h:4
WEnumerations::TransmissionStatus
TransmissionStatus
Definition WEnums.h:15
WEnumerations::PageDirection
PageDirection
Definition WEnums.h:13
WEnumerations::DisplayWakeUpTime
DisplayWakeUpTime
Definition WEnums.h:18
WEnumerations::DisplayWakeUpRange
DisplayWakeUpRange
Definition WEnums.h:17
WEnumerations::DisplayPageIndex
DisplayPageIndex
Definition WEnums.h:12
WEnumerations::DataAvailabilityEnum
DataAvailabilityEnum
Definition WEnums.h:28
WEnumerations::DisplayMode
DisplayMode
Definition WEnums.h:14
WEnumerations::AngularResolution
AngularResolution
Definition WEnums.h:8
WEnumerations::ChannelTypeEnum
ChannelTypeEnum
Definition WEnums.h:27
WEnumerations::ConnectionStatusEnum
ConnectionStatusEnum
Definition WEnums.h:26
WCommunication
Definition WEthernetCommunication.h:5
FilterType
Helper to encapsulate the the raw data error.
Definition FilterType.h:20
FilterType::GetNumH
unsigned int GetNumH()
Gets historical spots number at current position.
Definition FilterType.cpp:42
FilterType::SetNumS
void SetNumS(unsigned int numS)
Sets historical spots number on both sides.
Definition FilterType.cpp:66
FilterType::SetNumH
void SetNumH(unsigned int numH)
Sets historical spots number at current position.
Definition FilterType.cpp:50
FilterType::GetFilterMode
FILTER_MODE GetFilterMode()
Gets the filter mode.
Definition FilterType.cpp:26
FilterType::GetNumS
unsigned int GetNumS()
Gets historical spots number on both sides.
Definition FilterType.cpp:58
FilterType::SetFilterMode
void SetFilterMode(FILTER_MODE filterMode)
Sets the filter mode.
Definition FilterType.cpp:34
NavigationSensor
Definition NavigationSensor.h:61
WFilterType
Definition WFilterType.h:9
WFilterType::NumH
property unsigned int NumH
Definition WFilterType.h:26
WNavigationSensor
Definition WNavigationSensor.h:24
WNavigationSensor::ShowDeviceIdentification
void ShowDeviceIdentification()
Shows the device identification.
Definition WNavigationSensor.h:1019
WNavigationSensor::GetFilterType
WFilterType GetFilterType()
Definition WNavigationSensor.h:63
WNavigationSensor::GetNetworkInformation
WNetworkInformation GetNetworkInformation()
Gets whole data information.
Definition WNavigationSensor.h:773
WNavigationSensor::~WNavigationSensor
~WNavigationSensor()
Definition WNavigationSensor.h:35
WNavigationSensor::SetDisplayWakeUpTime
WConfigurationResult SetDisplayWakeUpTime(DisplayWakeUpTime pWakeupTime)
Sets the OLED wake up time.
Definition WNavigationSensor.h:943
WNavigationSensor::GetSensorLeds
WSensorLeds GetSensorLeds() new
Gets the sensor's status led.
Definition WNavigationSensor.h:664
WNavigationSensor::GetSensorLamps
WSensorLamps GetSensorLamps()
Gets the sensor lamps status.
Definition WNavigationSensor.h:734
WNavigationSensor::SetDisplayMode
WConfigurationResult SetDisplayMode(DisplayMode pdisplayMode)
sets the display mode (Accepted values: Normal, On, Off)
Definition WNavigationSensor.h:466
WNavigationSensor::WNavigationSensor
WNavigationSensor(WBaseCommunication^ pcomm)
Definition WNavigationSensor.h:30
WNavigationSensor::Initialize
WCommunicationStatus Initialize() new
Initializes the object to connect the sensor.
Definition WNavigationSensor.h:42
WNavigationSensor::GetDisplayPageDirection
PageDirection GetDisplayPageDirection()
Returns the display page direction.
Definition WNavigationSensor.h:351
WNavigationSensor::WNavigationSensor
WNavigationSensor()
Definition WNavigationSensor.h:26
WNavigationSensor::GetAngularResolution
AngularResolution GetAngularResolution() new
Gets the angular resolution.
Definition WNavigationSensor.h:160
WNavigationSensor::GetDisplayWakeUpTime
DisplayWakeUpTime GetDisplayWakeUpTime()
Returns the OLED wake up time.
Definition WNavigationSensor.h:902
WNavigationSensor::GetLogoImage
List< List< UInt16 >^> GetLogoImage()
Returns the sensor's logo image.
Definition WNavigationSensor.h:507
WNavigationSensor::GetDisplayPageIndex
DisplayPageIndex GetDisplayPageIndex()
Returns the display page index.
Definition WNavigationSensor.h:252
WNavigationSensor::GetWms
List< unsigned int > GetWms()
Returns the window monitoring system of each sector (SECTORS_COUNT sectors - 132 -)
Definition WNavigationSensor.h:627
WNavigationSensor::SetAngularResolution
WConfigurationResult SetAngularResolution(AngularResolution pResolution) new
Sets the angle resolution. Can be either AngularResolution::ZeroToZeroPointOneAtFourtyHz,...
Definition WNavigationSensor.h:206
WNavigationSensor::SetDisplayPageIndex
WConfigurationResult SetDisplayPageIndex(DisplayPageIndex pPageIndex)
Sets the display page on the given direction.
Definition WNavigationSensor.h:301
WNavigationSensor::ResetLogoImage
WConfigurationResult ResetLogoImage()
Resets the logo image to its default.
Definition WNavigationSensor.h:597
WNavigationSensor::GetDisplayMode
DisplayMode GetDisplayMode()
Returns the display mode (values are NORMAL_MODE, ON_MODE or OFF_MODE)
Definition WNavigationSensor.h:426
WNavigationSensor::GetDisplayWakeUpRange
DisplayWakeUpRange GetDisplayWakeUpRange()
Returns the OLED wake up range.
Definition WNavigationSensor.h:812
WNavigationSensor::SetDisplayPageDirection
WConfigurationResult SetDisplayPageDirection(PageDirection pPageDirection)
Sets the display page on the given direction (Accepted values: NORMAL or UPDIDE_DOWN)
Definition WNavigationSensor.h:388
WNavigationSensor::SetDisplayWakeUpRange
WConfigurationResult SetDisplayWakeUpRange(DisplayWakeUpRange pWakeupTime)
Sets the OLED wake up range.
Definition WNavigationSensor.h:855
WNavigationSensor::GetMdiTransmissionStatus
TransmissionStatus GetMdiTransmissionStatus()
Returns the MDI transmission status.
Definition WNavigationSensor.h:985
WNavigationSensor::SetFilterType
WConfigurationResult SetFilterType(WFilterType^ pFilterType)
Definition WNavigationSensor.h:108
WNavigationSensor::SetLogoImage
WConfigurationResult SetLogoImage(List< List< UInt16 >^>^ logoToFetch)
Sets the sensor's logo image.
Definition WNavigationSensor.h:551
WNavigationSensor::SetSensorLeds
WConfigurationResult SetSensorLeds(WSensorLeds^ pLeds) new
Sets the sensors leds status led (ON or OFF)
Definition WNavigationSensor.h:700
NetworkInformation
Helper to encapsulate the network information.
Definition NetworkInformation.h:15
NetworkInformation::GetSubnetMask
string GetSubnetMask()
Gets the subnet mask.
Definition NetworkInformation.cpp:62
NetworkInformation::GetGateway
string GetGateway()
Gets the gateway Address.
Definition NetworkInformation.cpp:44
NetworkInformation::GetDhcpMode
bool GetDhcpMode()
Gets the dhcp mode.
Definition NetworkInformation.cpp:80
NetworkInformation::GetIpAddress
string GetIpAddress()
Gets the IP v4 Address.
Definition NetworkInformation.cpp:8
NetworkInformation::GetMacAddress
string GetMacAddress()
Get the sensor's mac adress.
Definition NetworkInformation.cpp:98
NetworkInformation::GetIpPort
int GetIpPort()
Gets the tcp/ip comm port.
Definition NetworkInformation.cpp:26
SensorLamps
Helper to encapsulate the sensor lamps state.
Definition SensorLamps.h:20
SensorLamps::GetLed3
LEDCOLOR GetLed3()
Gets the LED3 status.
Definition SensorLamps.cpp:66
SensorLamps::GetLed2
LEDCOLOR GetLed2()
Gets the LED2 status.
Definition SensorLamps.cpp:48
SensorLamps::GetLed1
LEDCOLOR GetLed1()
Gets the LED1 status.
Definition SensorLamps.cpp:30
SensorLeds
Helper to encapsulate the sensor leds state.
Definition SensorLeds.h:11
SensorLeds::SetStatusLed
void SetStatusLed(bool pStatusLed)
Sets the status led.
Definition SensorLeds.cpp:35
SensorLeds::GetStatusLed
bool GetStatusLed()
Gets the status led.
Definition SensorLeds.cpp:26
WNetworkInformation
A wrapper on the NetworkInformation data encapsulation.
Definition WNetworkInformation.h:14
WNetworkInformation::IpAddress
property String IpAddress
Definition WNetworkInformation.h:34
WRawDataSensor
This class is a wrapper around the unmanaged code RawDataSensor. The goal of this classe is make acce...
Definition WRawDataSensor.h:37
WRawDataSensor::toManagedInstance
WConfigurationResult toManagedInstance(ConfigurationResult pResult)
Definition WRawDataSensor.h:1407
WSensorLamps
A wrapper on the SensorLamps data encapsulation.
Definition WSensorLamps.h:11
WSensorLamps::Led1
property LedColor Led1
Definition WSensorLamps.h:29
WSensorLeds
A wrapper on the SensorLeds data encapsulation.
Definition WSensorLeds.h:8
WSensorLeds::StatusLed
property bool StatusLed
Definition WSensorLeds.h:24
BadAcknowledgmentException
An Exception used when a bad acknowledgment error is detected.
Definition BadAcknowledgmentException.h:15
BadAcknowledgmentException::what
virtual const char * what() const noexcept
Overload of message retrie.
Definition BadAcknowledgmentException.h:44
CommunicationException
An Exception used when a communication error is detected.
Definition CommunicationException.h:15
CommErrorCode::ErrorMeaning
std::string ErrorMeaning
Definition CommunicationStructures.h:16
CommErrorCode::ErrorCode
int ErrorCode
Definition CommunicationStructures.h:15
CommunicationStatus
Definition CommunicationStructures.h:24
CommunicationStatus::Status
ConnectionState Status
Definition CommunicationStructures.h:26
CommunicationStatus::Channels
vector< Channel > Channels
Definition CommunicationStructures.h:25
CommunicationStatus::ErrorCode
CommErrorCode ErrorCode
Definition CommunicationStructures.h:27
ParameterNotSupportedException
An exception used when not supported values are fetched to the sensor.
Definition ParameterNotSupportedException.h:14
ParameterNotSupportedException::what
virtual const char * what() const noexcept
Overload of message retrie.
Definition ParameterNotSupportedException.h:44
SensorErrorException
An exception used when the sensor returns an error related to a command excecution.
Definition SensorErrorException.h:14
ThreadCreationException
An Exception used when a thread creation error is detected.
Definition ThreadCreationException.h:16
WToolboxException::WBadAcknowledgmentException
Definition WBadAcknowledgmentException.h:6
WUtils::WChannel
Definition WChannel.h:12
WUtils::WChannel::Type
property ChannelTypeEnum Type
Definition WChannel.h:22
WUtils::WCommunicationErrorCode
Definition WCommunicationErrorCode.h:6
WToolboxException::WCommunicationException
Definition WCommunicationException.h:6
WToolboxException::WCommunicationException::ErrorCode
property int ErrorCode
Definition WCommunicationException.h:12
WUtils::WCommunicationStatus
Definition WCommunicationStatus.h:16
WUtils::WCommunicationStatus::Channels
property List< WChannel^> Channels
Definition WCommunicationStatus.h:24
WConfigurationResult
A wrapper on the ConfigurationResult data encapsulation.
Definition WConfigurationResult.h:16
WToolboxException::WParameterNotSupportedException
Definition WParameterNotSupportedException.h:6
WToolboxException::WSensorException
Definition WSensorException.h:6
WToolboxException::WSensorException::ErrorCode
property String ErrorCode
Definition WSensorException.h:12
WToolboxException::WThreadCreationException
Definition WThreadCreationException.h:6