From 4e6d7c33b302f40b7abb59f37269c557afe07dfd Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sat, 17 Oct 2026 12:20:50 +0200 Subject: [PATCH] rugnux live: END carries the merged data, map coefficients and placed model rugnux wrote Co-Authored-By: Claude Opus 5.5 --- receiver/JFJochReceiverRugnux.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/receiver/JFJochReceiverRugnux.cpp b/receiver/JFJochReceiverRugnux.cpp index b876253f2..2254855ca 100644 --- a/receiver/JFJochReceiverRugnux.cpp +++ b/receiver/JFJochReceiverRugnux.cpp @@ -16,6 +16,7 @@ #include "../frame_serialize/CBORStream2Deserializer.h" #include "../rugnux/RugnuxLive.h" #include "../rugnux/ResultReport.h" +#include "../writer/RugnuxResultBlocks.h" using namespace std::chrono_literals; @@ -338,9 +339,10 @@ void JFJochReceiverRugnux::AddToEndMessage(EndMessage &message) { message.refined_poni_rot2 = r.refined_poni_rot2; message.refined_poni_rot3 = r.refined_poni_rot3; message.refined_rotation_axis = r.refined_rotation_axis; - // TODO: merged data, map coefficients and placed model from scratch_dir (writer branch). Only here, - // with rugnux_result set: every file in scratch_dir is then whole - rugnux writes synchronously and a - // cut never stops a write half-way - while a run that threw may have left one half-written. + // Merged data, map coefficients and placed model, for the writer to write beside the master. Only + // here, with rugnux_result set: every file in scratch_dir is then whole - rugnux writes synchronously + // and a cut never stops a write half-way - while a run that threw may have left one half-written. + FillRugnuxResultBlocks(scratch_dir + "/p", message); } void JFJochReceiverRugnux::Configure(const StartMessage &msg) {