Assert fixes

This commit is contained in:
Mark Watkins 2011-07-01 17:47:11 +10:00
parent 80e82ee821
commit ed686a7f2c
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ public:
class WaveData:public gPointData
{
public:
WaveData(MachineCode _code,int _size=800000);
WaveData(MachineCode _code,int _size=1000000);
virtual ~WaveData();
virtual void Reload(Day *day=NULL);
protected:

View File

@ -521,7 +521,7 @@ bool ResmedLoader::LoadPLD(Machine *mach,Session *sess,EDFParser &edf)
ToTimeDelta(mach,sess,edf,edf.edfsignals[s]->data, code,recs,duration);
} else if (edf.edfsignals[s]->label=="Therapy Pres") {
code=CPAP_Pressure;
ToTimeDelta(mach,sess,edf,edf.edfsignals[s]->data, code,recs,duration,100.0); //50.0
ToTimeDelta(mach,sess,edf,edf.edfsignals[s]->data, code,recs,duration,50.0); //50.0
} else if (edf.edfsignals[s]->label=="MV") {
code=CPAP_MinuteVentilation;
//ToTimeDelta(mach,sess,edf,edf.edfsignals[s]->data, code,recs,duration,1.0);

View File

@ -115,7 +115,7 @@ Daily::Daily(QWidget *parent,QGLContext *context) :
LEAK->setMinimumHeight(150);
AddCPAPData(frw=new WaveData(CPAP_FlowRate,700000)); //FlowRate
AddCPAPData(frw=new WaveData(CPAP_FlowRate,1000000)); //FlowRate
// AddCPAPData(mpw=new WaveData(CPAP_MaskPressure,700000)); //FlowRate
// Holy crap resmed stuff is huge..
AddGraph(FRW=new gGraphWindow(gSplitter,tr("Flow Rate"),SF));
@ -124,7 +124,7 @@ Daily::Daily(QWidget *parent,QGLContext *context) :
FRW->AddLayer(new gXAxis());
FRW->AddLayer(new gLineOverlayBar(flags[0],QColor("light green"),"CSR"));
//FRW->AddLayer(new gLineChart(mpw,Qt::blue,700000,true));
gLineChart *g=new gLineChart(frw,Qt::black,700000,true);
gLineChart *g=new gLineChart(frw,Qt::black,4000,true);
g->ReportEmpty(true);
FRW->AddLayer(g);
FRW->AddLayer(new gLineOverlayBar(flags[3],QColor("blue"),"H"));