mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-22 05:30:44 +00:00
Respiratory rate compile fixes
This commit is contained in:
parent
e401f5ede6
commit
02393b0512
@ -132,6 +132,7 @@ int CalcRespRate::filterFlow(EventList *in, EventList *out, EventList *tv, Event
|
|||||||
QVector<EventDataType> TV;
|
QVector<EventDataType> TV;
|
||||||
QVector<qint64> breaths_start;
|
QVector<qint64> breaths_start;
|
||||||
int lasti=0;
|
int lasti=0;
|
||||||
|
long tmp32;
|
||||||
|
|
||||||
for (i=0;i<size;i++) {
|
for (i=0;i<size;i++) {
|
||||||
c=stage1[i];
|
c=stage1[i];
|
||||||
@ -141,7 +142,8 @@ int CalcRespRate::filterFlow(EventList *in, EventList *out, EventList *tv, Event
|
|||||||
u1=time;
|
u1=time;
|
||||||
if (u2>0) {
|
if (u2>0) {
|
||||||
z2=i;
|
z2=i;
|
||||||
len=abs(u2-u1);
|
tmp32=u2-u1;
|
||||||
|
len=abs(tmp32);
|
||||||
if (tv) { // && z1>0) { // Tidal Volume Calculations
|
if (tv) { // && z1>0) { // Tidal Volume Calculations
|
||||||
EventDataType t=0;
|
EventDataType t=0;
|
||||||
for (int g=z1;g<z2;g++) {
|
for (int g=z1;g<z2;g++) {
|
||||||
@ -160,7 +162,8 @@ int CalcRespRate::filterFlow(EventList *in, EventList *out, EventList *tv, Event
|
|||||||
l1=time;
|
l1=time;
|
||||||
if (l2>0) {
|
if (l2>0) {
|
||||||
z1=i;
|
z1=i;
|
||||||
len=abs(l2-l1);
|
tmp32=l2-l1;
|
||||||
|
len=abs(tmp32);
|
||||||
if (tv) {
|
if (tv) {
|
||||||
// Average the other half of the breath to increase accuracy.
|
// Average the other half of the breath to increase accuracy.
|
||||||
EventDataType t=0;
|
EventDataType t=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user