From 05f0938a65c4f8c330791097680e1e094260bb60 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 6 Mar 2026 20:40:29 +0100 Subject: refactoring --- src/camera/veyeimx287m.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/camera/veyeimx287m.h') diff --git a/src/camera/veyeimx287m.h b/src/camera/veyeimx287m.h index b624fd2..bdc57d9 100644 --- a/src/camera/veyeimx287m.h +++ b/src/camera/veyeimx287m.h @@ -15,6 +15,8 @@ #include "constants.h" #include "icamera.h" #include "image.h" +// TODO: remove this include +#include "printerclient.h" #include "utils/sem_queue.h" namespace veye { @@ -24,6 +26,7 @@ class i2c; } // namespace veye class HttpServer; +class IStand; /* * start calibration @@ -58,12 +61,17 @@ public: VeyeIMX287m(); ~VeyeIMX287m() override; +public slots: + void onMoveFinished() override; + public: static std::vector> search(); public: bool startStream() override; + void startCalibration(std::shared_ptr stand, double zRangeMm) override; + bool dequeueImageBuffer(size_t &image); std::shared_ptr getImage() override; @@ -157,4 +165,13 @@ private: std::shared_ptr m_i2c; std::shared_ptr m_httpServer; + + // calibration + // TODO: re-organize this logic + bool m_isCalibrating{false}; + bool m_ignoreFrames{false}; + std::vector> m_calibrationPixels; + std::shared_ptr m_stand; + double m_zRangeMm{std::numeric_limits::quiet_NaN()}; + bool m_isMoving{false}; }; -- cgit v1.3