last ...
This commit is contained in:
@@ -119,11 +119,11 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
zIndex,
|
||||
loopback,
|
||||
false, // Trigger ...
|
||||
true, // Decision ...
|
||||
true, // Analyse ...
|
||||
true, // Verification ...
|
||||
true, // Consolidation ...
|
||||
true // Vision ...
|
||||
true, // Decision ...
|
||||
true, // Analyse ...
|
||||
true, // Verification ...
|
||||
true, // Consolidation ...
|
||||
true // Vision ...
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
@@ -224,7 +224,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
// Detectiong Signal Boxes ...
|
||||
hasWaitingBoxes = workingZone
|
||||
.DetectSignalBoxes(
|
||||
X_CYCLE_DECISION,
|
||||
X_CYCLE_ANALYSE,
|
||||
provider,
|
||||
zIndex //
|
||||
);
|
||||
@@ -311,11 +311,12 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
if (hasBreakedBoxes)
|
||||
{
|
||||
//
|
||||
int idx = FindIndex(
|
||||
int idx = -1;
|
||||
bool has = FindIndex(
|
||||
idx,
|
||||
signalBox,
|
||||
workingZone.breakedBoxes //
|
||||
);
|
||||
bool has = IsValidIndex(idx);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
@@ -333,11 +334,12 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
if (hasWaitingBoxes)
|
||||
{
|
||||
//
|
||||
int idx = FindIndex(
|
||||
int idx = -1;
|
||||
bool has = FindIndex(
|
||||
idx,
|
||||
signalBox,
|
||||
workingZone.waitingBoxes //
|
||||
);
|
||||
bool has = IsValidIndex(idx);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
@@ -470,7 +472,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
iAtr = provider.decisionXConditions.atrBuffer[1];
|
||||
iAtr *= 0;
|
||||
}
|
||||
// else
|
||||
// else
|
||||
// if (signalProvider == X121SMC_XWZ_PROVIDER_ACTIVATED_BOX)
|
||||
// {
|
||||
// //
|
||||
@@ -838,8 +840,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
//
|
||||
// Summarize Results ...
|
||||
result = hasPriority &&
|
||||
hasSignalBox &&
|
||||
hasRewardAmount;
|
||||
hasSignalBox &&
|
||||
hasRewardAmount;
|
||||
|
||||
//
|
||||
if (result)
|
||||
|
||||
Reference in New Issue
Block a user