modify display: raw unsigned cal signed

This commit is contained in:
qinliqing 2025-04-29 12:55:39 +02:00
parent b199e21238
commit f96c129617

View File

@ -87,7 +87,14 @@ void BPMDisplay::plot(const QVector<signed short> &data, const QVector<signed sh
double max = 0;
for (int i = 0; i < nrPoints; i++)
{
dataY[i] = /*65535 -*/ data[i];
if (showCalibrated){
dataY[i] = /*65535 -*/ data[i]; // signed, but both raw and cal will show signed
}else{
dataY[i] = /*65535 -*/ static_cast<unsigned short>(data[i]); //FOR RAW UNSIGNED
}
// dataY[i] = /*65535 -*/ static_cast<unsigned short>(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)