From 7703c9efc6768d3a25eec4266594ab594cc91d4c Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 6 Mar 2026 23:21:09 +0100 Subject: calibrated with fake X --- src/protocols/httpserver.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/protocols') diff --git a/src/protocols/httpserver.cpp b/src/protocols/httpserver.cpp index 3ca1f5c..219bd76 100644 --- a/src/protocols/httpserver.cpp +++ b/src/protocols/httpserver.cpp @@ -185,10 +185,19 @@ QHttpServerResponse HttpServer::GET_profile() { const auto image = m_scanner->camera()->getImage(); const auto pixels = image->sharedPixels(); - const auto profile = Profile{*pixels, ::calibrationTableZ, ::calibrationTableX}; + const auto profile = Profile{*pixels, + m_scanner->calibrationTableZ(), + m_scanner->calibrationTableX()}; const QJsonObject json{profile}; + static bool done{false}; + + if (!done) { + qDebug() << json; + done = true; + } + return QHttpServerResponse{QJsonDocument{json}.toJson()}; } -- cgit v1.3