File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -516,9 +516,15 @@ bool DetectionAutomatic::checkSignal(Image<ColorRgb>& image)
516
516
bool hasSignal = (finalQuality <= _modelTolerance);
517
517
518
518
if (!hasSignal && _noSignal)
519
+ {
520
+ _onSignalTime = 0 ;
519
521
return false ;
522
+ }
520
523
if (hasSignal && !_noSignal)
524
+ {
525
+ _offSignalTime = 0 ;
521
526
return true ;
527
+ }
522
528
523
529
qint64 time = InternalClock::now ();
524
530
@@ -551,6 +557,8 @@ bool DetectionAutomatic::checkSignal(Image<ColorRgb>& image)
551
557
552
558
return true ;
553
559
}
560
+ else
561
+ _offSignalTime = 0 ;
554
562
555
563
if (hasSignal && _noSignal)
556
564
{
@@ -576,6 +584,8 @@ bool DetectionAutomatic::checkSignal(Image<ColorRgb>& image)
576
584
577
585
return false ;
578
586
}
587
+ else
588
+ _onSignalTime = 0 ;
579
589
580
590
return true ;
581
591
}
You can’t perform that action at this time.
0 commit comments