Remove bogus limits on pressures in LoadPLD

This commit is contained in:
Phil Olynyk 2021-07-13 14:36:31 -04:00
parent c1df93ff42
commit 3b02abe63c

View File

@ -3031,18 +3031,18 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path)
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_Pressure, es.label)) { } else if (matchSignal(CPAP_Pressure, es.label)) {
code = CPAP_Pressure; code = CPAP_Pressure;
es.physical_maximum = 25; // es.physical_maximum = 25;
es.physical_minimum = 4; // es.physical_minimum = 4;
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_IPAP, es.label)) { } else if (matchSignal(CPAP_IPAP, es.label)) {
code = CPAP_IPAP; code = CPAP_IPAP;
es.physical_maximum = 25; // es.physical_maximum = 25;
es.physical_minimum = 4; // es.physical_minimum = 4;
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_EPAP, es.label)) { // Expiratory Pressure } else if (matchSignal(CPAP_EPAP, es.label)) { // Expiratory Pressure
code = CPAP_EPAP; code = CPAP_EPAP;
es.physical_maximum = 25; // es.physical_maximum = 25;
es.physical_minimum = 4; // es.physical_minimum = 4;
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_MinuteVent,es.label)) { } else if (matchSignal(CPAP_MinuteVent,es.label)) {
@ -3076,8 +3076,8 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path)
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_MaskPressure, es.label)) { } else if (matchSignal(CPAP_MaskPressure, es.label)) {
code = CPAP_MaskPressure; code = CPAP_MaskPressure;
es.physical_maximum = 25; // es.physical_maximum = 25;
es.physical_minimum = 4; // es.physical_minimum = 4;
ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square);
} else if (matchSignal(CPAP_IE, es.label)) { //I:E ratio } else if (matchSignal(CPAP_IE, es.label)) { //I:E ratio
@ -3237,8 +3237,8 @@ void ResmedLoader::ToTimeDelta(Session *sess, ResMedEDFInfo &edf, EDFSignal &es,
} }
if (forceDebug && ((code == CPAP_Pressure) || (code == CPAP_IPAP) || (code == CPAP_EPAP)) ) if (forceDebug && ((code == CPAP_Pressure) || (code == CPAP_IPAP) || (code == CPAP_EPAP)) )
qDebug() << "Before loop to buildEventList" << el->count() << "Last:" << last*es.gain << "Next:" << (*sptr)*es.gain << "Pos:" << sptr - es.dataArray << qDebug() << "Before loop to buildEventList" << el->count() << "Last:" << last*es.gain << "Next:" << (*sptr)*es.gain <<
QDateTime::fromMSecsSinceEpoch(tt).toString(); "Pos:" << sptr - es.dataArray << QDateTime::fromMSecsSinceEpoch(tt).toString();
for (; sptr < eptr; sptr++) { for (; sptr < eptr; sptr++) {
c = *sptr; c = *sptr;
if (last != c) { if (last != c) {