@@ -1,6 +1,6 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-0 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-03T17:10:59. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -245,7 +245,7 void rmapplugin::receivePacketFromBridge | |||
|
245 | 245 | preProcessPacket(packet); |
|
246 | 246 | |
|
247 | 247 | // Send the packet to the TM echo bridge for processing |
|
248 |
this->UI->tmEchoBridge->sendTMPacket |
|
|
248 | this->UI->tmEchoBridge->sendTMPacket(packet); | |
|
249 | 249 | //this->UI->tmEchoBridge->sendTMPacket_alternative(packet); |
|
250 | 250 | |
|
251 | 251 | this->generalCCSDSPacketStore.append(packet); |
@@ -157,52 +157,6 void TMEchoBridge::sendXML_GSE_HK() | |||
|
157 | 157 | |
|
158 | 158 | void TMEchoBridge::sendTMPacket(TMPacketToRead *tmPacketToRead) |
|
159 | 159 | { |
|
160 | if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState) | |
|
161 | { | |
|
162 | // START DOCUMENT | |
|
163 | //xmlWriter->writeStartDocument(); | |
|
164 | ||
|
165 | // <Event> | |
|
166 | xmlWriter->writeStartElement("Event"); | |
|
167 | ||
|
168 | // <EventDate> | |
|
169 | xmlWriter->writeStartElement("EventDate"); | |
|
170 | xmlWriter->writeEndElement(); | |
|
171 | ||
|
172 | // <Event Time> | |
|
173 | xmlWriter->writeStartElement("EventTime"); | |
|
174 | xmlWriter->writeEndElement(); | |
|
175 | ||
|
176 | // <EventBinary> | |
|
177 | xmlWriter->writeStartElement("EventBinary"); | |
|
178 | xmlWriter->writeCharacters( | |
|
179 | QByteArray::fromRawData( (char*) tmPacketToRead->Value, tmPacketToRead->size).toHex() | |
|
180 | ); | |
|
181 | //tmEchoBridgeSocket->write(QByteArray::fromRawData( (char*) tmPacketToRead->Value, tmPacketToRead->size)); | |
|
182 | xmlWriter->writeEndElement(); | |
|
183 | ||
|
184 | // </Event> | |
|
185 | xmlWriter->writeEndElement(); | |
|
186 | ||
|
187 | // END DOCUMENT | |
|
188 | xmlWriter->writeEndDocument(); | |
|
189 | ||
|
190 | tmEchoBridgeSocket->flush(); | |
|
191 | ||
|
192 | totalOfBytes = totalOfBytes + tmPacketToRead->size; | |
|
193 | totalOfPackets = totalOfPackets + 1; | |
|
194 | label_totalOfBytes->setText("Number of TM bytes sent: " + QString::number(totalOfBytes)); | |
|
195 | label_totalOfPackets->setText("Number of TM packets sent: " + QString::number(totalOfPackets)); | |
|
196 | } | |
|
197 | else | |
|
198 | { | |
|
199 | totalOfPacketsDropped = totalOfPacketsDropped + 1; | |
|
200 | label_totalOfPacketsDropped->setText("Number of TM packets dropped: " + QString::number(totalOfPacketsDropped)); | |
|
201 | } | |
|
202 | } | |
|
203 | ||
|
204 | void TMEchoBridge::sendTMPacket_v2(TMPacketToRead *tmPacketToRead) | |
|
205 | { | |
|
206 | 160 | QByteArray ccsdsArray; |
|
207 | 161 | QTime echoBridgeTimeout; |
|
208 | 162 |
General Comments 0
You need to be logged in to leave comments.
Login now