Skip to content

Commit ca46fbe

Browse files
daooDaniel Oom
and
Daniel Oom
authored
Update to RT Protocol version 1.25 (#41)
Co-authored-by: Daniel Oom <[email protected]>
1 parent 340e0a5 commit ca46fbe

File tree

6 files changed

+64
-44
lines changed

6 files changed

+64
-44
lines changed

RTClientExample/Input.cpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -710,14 +710,15 @@ void CInput::ReadCameraSettings(unsigned int &nCameraId, int &nMode,
710710
}
711711

712712
printf("Enter Video Resolution :\n");
713-
printf(" 1 : 1080p\n");
714-
printf(" 2 : 720p\n");
715-
printf(" 3 : 540p\n");
716-
printf(" 4 : 480p\n");
717-
printf(" 5 : None (default)\n");
718-
printf("Select 1 - 5 : ");
713+
printf(" 1 : 1440p\n");
714+
printf(" 2 : 1080p\n");
715+
printf(" 3 : 720p\n");
716+
printf(" 4 : 540p\n");
717+
printf(" 5 : 480p\n");
718+
printf(" 6 : None (default)\n");
719+
printf("Select 1 - 6 : ");
719720
int tmpVideoRes = ReadChar('1', true) - '0' - 1;
720-
if (tmpVideoRes >= 0 && tmpVideoRes <= 3)
721+
if (tmpVideoRes >= 0 && tmpVideoRes <= 4)
721722
{
722723
videoResolution = (CRTProtocol::EVideoResolution)tmpVideoRes;
723724
}

RTClientExample/OutputSettings.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ void COutput::PrintGeneralSettings(CRTProtocol* poRTProtocol)
284284
case CRTProtocol::ModelMiqusVideoColor:
285285
printf(" Model: Miqus Video Color ");
286286
break;
287+
case CRTProtocol::ModelMiqusVideoColorPlus:
288+
printf(" Model: Miqus Video Color Plus ");
289+
break;
287290
case CRTProtocol::ModelArqusA5:
288291
printf(" Model: Arqus A5 ");
289292
break;
@@ -339,6 +342,9 @@ void COutput::PrintGeneralSettings(CRTProtocol* poRTProtocol)
339342
{
340343
switch (videoResolution)
341344
{
345+
case CRTProtocol::VideoResolution1440p:
346+
printf(" Video Resolution: 1440p\n");
347+
break;
342348
case CRTProtocol::VideoResolution1080p :
343349
printf(" Video Resolution: 1080p\n");
344350
break;

RTClientExample/RTClientExample.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "Operations.h"
22

33
#define LATEST_SELECTABLE_MAJOR_VERSION 1
4-
#define LATEST_SELECTABLE_MINOR_VERSION 24
4+
#define LATEST_SELECTABLE_MINOR_VERSION 25
55
#define PROGRAM_VERSION 0
66

77
int main(int argc, char **argv)
@@ -139,4 +139,4 @@ int main(int argc, char **argv)
139139
delete poInput;
140140

141141
return 1;
142-
} // main
142+
} // main

RTPacket.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
#define MAJOR_VERSION 1
17-
#define MINOR_VERSION 24
17+
#define MINOR_VERSION 25
1818

1919
class DLL_EXPORT CRTPacket
2020
{
@@ -329,4 +329,4 @@ class DLL_EXPORT CRTPacket
329329
}; // RTPacket
330330

331331

332-
#endif // RTPACKET_H
332+
#endif // RTPACKET_H

RTProtocol.cpp

+12-1
Original file line numberDiff line numberDiff line change
@@ -2237,6 +2237,10 @@ bool CRTProtocol::ReadGeneralSettings()
22372237
{
22382238
sCameraSettings.eModel = ModelMiqusHybrid;
22392239
}
2240+
else if (tStr == "miqus video color plus")
2241+
{
2242+
sCameraSettings.eModel = ModelMiqusVideoColorPlus;
2243+
}
22402244
else if (tStr == "arqus a5")
22412245
{
22422246
sCameraSettings.eModel = ModelArqusA5;
@@ -2314,7 +2318,11 @@ bool CRTProtocol::ReadGeneralSettings()
23142318
if (oXML.FindChildElem("Video_Resolution"))
23152319
{
23162320
tStr = ToLower(oXML.GetChildData());
2317-
if (tStr == "1080p")
2321+
if (tStr == "1440p")
2322+
{
2323+
sCameraSettings.eVideoResolution = VideoResolution1440p;
2324+
}
2325+
else if (tStr == "1080p")
23182326
{
23192327
sCameraSettings.eVideoResolution = VideoResolution1080p;
23202328
}
@@ -5467,6 +5475,9 @@ bool CRTProtocol::SetCameraVideoSettings(
54675475
{
54685476
switch (*eVideoResolution)
54695477
{
5478+
case VideoResolution1440p:
5479+
oXML.AddElem("Video_Resolution", "1440p");
5480+
break;
54705481
case VideoResolution1080p:
54715482
oXML.AddElem("Video_Resolution", "1080p");
54725483
break;

RTProtocol.h

+34-32
Original file line numberDiff line numberDiff line change
@@ -78,33 +78,34 @@ class DLL_EXPORT CRTProtocol
7878

7979
enum ECameraModel
8080
{
81-
ModelMacReflex = 0,
82-
ModelProReflex120 = 1,
83-
ModelProReflex240 = 2,
84-
ModelProReflex500 = 3,
85-
ModelProReflex1000 = 4,
86-
ModelOqus100 = 5,
87-
ModelOqus300 = 6,
88-
ModelOqus300Plus = 7,
89-
ModelOqus400 = 8,
90-
ModelOqus500 = 9,
91-
ModelOqus200C = 10,
92-
ModelOqus500Plus = 11,
93-
ModelOqus700 = 12,
94-
ModelOqus700Plus = 13,
95-
ModelOqus600Plus = 14,
96-
ModelMiqusM1 = 15,
97-
ModelMiqusM3 = 16,
98-
ModelMiqusM5 = 17,
99-
ModelMiqusSyncUnit = 18,
100-
ModelMiqusVideo = 19,
101-
ModelMiqusVideoColor = 20,
102-
ModelMiqusHybrid = 21,
103-
ModelArqusA5 = 22,
104-
ModelArqusA12 = 23,
105-
ModelArqusA9 = 24,
106-
ModelArqusA26 = 25,
107-
ModelUnknown = 26
81+
ModelMacReflex = 0,
82+
ModelProReflex120 = 1,
83+
ModelProReflex240 = 2,
84+
ModelProReflex500 = 3,
85+
ModelProReflex1000 = 4,
86+
ModelOqus100 = 5,
87+
ModelOqus300 = 6,
88+
ModelOqus300Plus = 7,
89+
ModelOqus400 = 8,
90+
ModelOqus500 = 9,
91+
ModelOqus200C = 10,
92+
ModelOqus500Plus = 11,
93+
ModelOqus700 = 12,
94+
ModelOqus700Plus = 13,
95+
ModelOqus600Plus = 14,
96+
ModelMiqusM1 = 15,
97+
ModelMiqusM3 = 16,
98+
ModelMiqusM5 = 17,
99+
ModelMiqusSyncUnit = 18,
100+
ModelMiqusVideo = 19,
101+
ModelMiqusVideoColor = 20,
102+
ModelMiqusHybrid = 21,
103+
ModelArqusA5 = 22,
104+
ModelArqusA12 = 23,
105+
ModelArqusA9 = 24,
106+
ModelArqusA26 = 25,
107+
ModelMiqusVideoColorPlus = 26,
108+
ModelUnknown = 27
108109
};
109110

110111
enum ECameraMode
@@ -116,11 +117,12 @@ class DLL_EXPORT CRTProtocol
116117

117118
enum EVideoResolution
118119
{
119-
VideoResolution1080p = 0,
120-
VideoResolution720p = 1,
121-
VideoResolution540p = 2,
122-
VideoResolution480p = 3,
123-
VideoResolutionNone = 4
120+
VideoResolution1440p = 0,
121+
VideoResolution1080p = 1,
122+
VideoResolution720p = 2,
123+
VideoResolution540p = 3,
124+
VideoResolution480p = 4,
125+
VideoResolutionNone = 5
124126
};
125127

126128
enum EVideoAspectRatio

0 commit comments

Comments
 (0)