mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
nothing much
This commit is contained in:
@ -225,7 +225,7 @@ class slsDetectorData {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual dataType getChannel(char *data, int ix, int iy, int dr) {
|
virtual int getChannel(char *data, int ix, int iy, int dr) {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,10 +76,10 @@ public:
|
|||||||
while (dd<=(dsize-packetSize)) {
|
while (dd<=(dsize-packetSize)) {
|
||||||
pnum=getPacketNumber(p);
|
pnum=getPacketNumber(p);
|
||||||
fn=getFrameNumber(p);
|
fn=getFrameNumber(p);
|
||||||
//cout <<"pnum:"<<pnum<<" fn:"<<fn<<"\t "<< np << endl;;
|
//cout <<"fnum:"<<fn<<" pnum:"<<pnum<<" np:"<< np << "\t";
|
||||||
|
|
||||||
if (pnum<1 || pnum>nPackets) {
|
if (pnum<1 || pnum>nPackets) {
|
||||||
cout << "Bad packet number " << pnum << " frame "<< fn << endl;
|
//cout << "Bad packet number " << pnum << " frame "<< fn << endl;
|
||||||
retval=NULL;
|
retval=NULL;
|
||||||
np=0;
|
np=0;
|
||||||
} else if (pnum==1) {
|
} else if (pnum==1) {
|
||||||
@ -98,20 +98,26 @@ public:
|
|||||||
p+=packetSize;
|
p+=packetSize;
|
||||||
dd+=packetSize;
|
dd+=packetSize;
|
||||||
np++;
|
np++;
|
||||||
|
//cout <<"fnum:"<<fn<<" pnum:"<<pnum<<" np:"<< np << "\t";
|
||||||
// cout << pnum << " " << fn << " " << np << " " << dd << " " << dsize << endl;
|
// cout << pnum << " " << fn << " " << np << " " << dd << " " << dsize << endl;
|
||||||
if (np==nPackets){
|
if (np==nPackets){
|
||||||
if (pnum==nPackets) {
|
if (pnum==nPackets) {
|
||||||
// cout << "Frame found!" << endl;
|
//cprintf(BG_GREEN, "Frame Found\n");
|
||||||
|
cout << "Frame found!" << endl;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
//cprintf(BG_RED, "Too many packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
||||||
cout << "Too many packets for this frame! "<< fnum << " " << pnum << endl;
|
cout << "Too many packets for this frame! "<< fnum << " " << pnum << endl;
|
||||||
retval=NULL;
|
retval=NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (np<nPackets) {
|
if (np<nPackets) {
|
||||||
if (np>0)
|
if (np>0){
|
||||||
|
//cprintf(BG_RED, "Too few packets for this frame! fnum:%d, pnum:%d np:%d\n",fnum,pnum,np);
|
||||||
cout << "Too few packets for this frame! "<< fnum << " " << pnum << endl;
|
cout << "Too few packets for this frame! "<< fnum << " " << pnum << endl;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ndata=np*packetSize;
|
ndata=np*packetSize;
|
||||||
|
Reference in New Issue
Block a user