Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit efc9d44

Browse files
committed
Increased the timeout of grabbed images.
1 parent bb47417 commit efc9d44

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

deploy/hyperion.tar.gz

-11 Bytes
Binary file not shown.

src/hyperion-v4l2/ImageHandler.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// hyperion-v4l2 includes
22
#include "ImageHandler.h"
33

4-
ImageHandler::ImageHandler(const std::string &address, int priority, double signalThreshold, bool skipProtoReply) :
5-
_priority(priority),
6-
_connection(address),
7-
_signalThreshold(signalThreshold),
8-
_signalProcessor(100, 50, 0, uint8_t(std::min(255, std::max(0, int(255*signalThreshold)))))
4+
ImageHandler::ImageHandler(const std::string & address, int priority, double signalThreshold, bool skipProtoReply) :
5+
_priority(priority),
6+
_connection(address),
7+
_signalThreshold(signalThreshold),
8+
_signalProcessor(100, 50, 0, uint8_t(std::min(255, std::max(0, int(255*signalThreshold)))))
99
{
1010
_connection.setSkipReply(skipProtoReply);
1111
}
1212

13-
void ImageHandler::receiveImage(const Image<ColorRgb> &image)
13+
void ImageHandler::receiveImage(const Image<ColorRgb> & image)
1414
{
1515
// check if we should do signal detection
1616
if (_signalThreshold < 0)
1717
{
18-
_connection.setImage(image, _priority, 200);
18+
_connection.setImage(image, _priority, 1000);
1919
}
2020
else
2121
{
@@ -28,7 +28,7 @@ void ImageHandler::receiveImage(const Image<ColorRgb> &image)
2828
// send the image to Hyperion if we have a signal
2929
if (!_signalProcessor.getCurrentBorder().unknown)
3030
{
31-
_connection.setImage(image, _priority, 200);
31+
_connection.setImage(image, _priority, 1000);
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)