modify display: raw unsigned cal signed
This commit is contained in:
parent
b199e21238
commit
f96c129617
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user