##// END OF EJS Templates
infinite loop suppressed...
leroy -
r18:b2eb1d610650 default
parent child
Show More
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-04-23T10:22:08. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-04-23T11:06:46. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -343,6 +343,7 void rmapplugin::receivePacketFromBridge
343 {
343 {
344 preProcessPacket(packet);
344 preProcessPacket(packet);
345 this->generalCCSDSPacketStore.append(packet);
345 this->generalCCSDSPacketStore.append(packet);
346 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.count()));
346 processPacketStore();
347 processPacketStore();
347 }
348 }
348
349
@@ -120,28 +120,9 void rmappluginPythonWrapper::sendTC()
120 }
120 }
121 }
121 }
122
122
123 /*unsigned int rmappluginPythonWrapper::storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size)
124 {
125 unsigned int i;
126 TMPacketToRead ccsdsPacketToStore;
127
128 ccsdsPacketToStore.size = size;
129 for(i=0; i<size; i++)
130 {
131 //ccsdsPacket0[i] = ccsdsPacket[i];
132 ccsdsPacketToStore.data[i] = ccsdsPacket[i];
133 }
134 ccsdsPacketStore->append(ccsdsPacketToStore);
135 emit ccsdsPacketIsAvailable(size);
136 return 1;
137 }*/
138
139 void rmappluginPythonWrapper::processPacketStore()
123 void rmappluginPythonWrapper::processPacketStore()
140 {
124 {
141 while (!ccsdsPacketStore->isEmpty())
125 emit ccsdsPacketIsAvailable(ccsdsPacketStore->at(0)->size);
142 {
143 emit ccsdsPacketIsAvailable(ccsdsPacketStore->at(0)->size);
144 }
145 }
126 }
146
127
147 void rmappluginPythonWrapper::setTargetAddressValue(unsigned int address)
128 void rmappluginPythonWrapper::setTargetAddressValue(unsigned int address)
General Comments 0
You need to be logged in to leave comments. Login now