From f96c1296170746860a4cff07698dd0ab64d9bb35 Mon Sep 17 00:00:00 2001 From: qinliqing Date: Tue, 29 Apr 2025 12:55:39 +0200 Subject: [PATCH] modify display: raw unsigned cal signed --- hit2023v2_RAWCAL/display.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hit2023v2_RAWCAL/display.cpp b/hit2023v2_RAWCAL/display.cpp index 3c6902b..a66873c 100644 --- a/hit2023v2_RAWCAL/display.cpp +++ b/hit2023v2_RAWCAL/display.cpp @@ -87,7 +87,14 @@ void BPMDisplay::plot(const QVector &data, const QVector(data[i]); //FOR RAW UNSIGNED + } + // dataY[i] = /*65535 -*/ static_cast(data[i]); //FOR RAW UNSIGNED + //dataY[i] = /*65535 -*/ data[i]; // signed, but both raw and cal will show signed + if (dataY[i] < min) min = dataY[i]; if (dataY[i] > max)