fix various bugs

add commandline parser for various options
allow cameras to be operated in serial fashion
allow disabeling of quirks
allow changing of Photonfocus quirk timeings
This commit is contained in:
uvos 2021-07-08 11:24:19 +02:00
parent 3a77df6dd5
commit b9b4b0fc2a
10 changed files with 134 additions and 36 deletions

View file

@ -30,8 +30,11 @@ private:
LightingSetup lighting_;
std::vector<std::shared_ptr<Camera>> cameras_;
std::vector<Camera::Image> images_;
size_t captureingCamera = 0;
QTimer ledTimer;
QTimer cameraFailureTimer;
bool quirks_;
bool serial_;
bool lightFor(const LightingSetup& lighting, double time);
@ -57,7 +60,7 @@ public slots:
void reloadCameras();
public:
Cameras(uvosled* led = nullptr);
Cameras(uvosled* led = nullptr, bool quirks = true, bool serial = false);
~Cameras();
bool setCameras(const std::vector<cam::Camera::Description>& descriptions);
bool addCamera(const cam::Camera::Description& desc);
@ -70,6 +73,8 @@ public:
void load(QSettings& settings);
void store(QSettings& settings);
void disable(bool disable);
inline static float quirkTime = 3;
};
#endif // CAMERAS_H