56 printf(
"\n\n\n\n\nDUPLICATE CBF GBC\n\n\n\n\n");
62 QObject::connect(
this, SIGNAL(
killAll()), cbfpe, SLOT(kill()));
65 QThread* th =
new QThread;
66 cbfpe->moveToThread(th);
67 QObject::connect(th, SIGNAL(started()), cbfpe, SLOT(execute()));
92 printf(
"\n\n\n\n\nDUPLICATE CBF GUC\n\n\n\n\n");
98 QObject::connect(
this, SIGNAL(
killAll()), cbfpe, SLOT(kill()));
101 QThread* th =
new QThread;
102 cbfpe->moveToThread(th);
103 QObject::connect(th, SIGNAL(started()), cbfpe, SLOT(execute()));
128 printf(
"\n\n\n\n\nDUPLICATE CBF LSREPLY\n\n\n\n\n");
134 QObject::connect(
this, SIGNAL(
killAll()), cbfpe, SLOT(kill()));
137 QThread* th =
new QThread;
138 cbfpe->moveToThread(th);
139 QObject::connect(th, SIGNAL(started()), cbfpe, SLOT(execute()));
154 (*i)->restartTimer(timeToBuffer);
166 (*i)->restartTimer(timeToBuffer);
178 (*i)->restartTimer(timeToBuffer);
void clear()
clear Clear the buffer.
HistoryPacketBuffer * m_HPB
void stopPacket(GBCPacket packet)
stopPacket Slot used to stop the packet (GBC case).
LongPositionVector soPv() const
soPv SO PV getter.
quint32 timestamp() const
timestamp Timestamp field getter
quint16 sequenceNumber() const
sequenceNumber Sequence number getter.
static int nbCBFPacketQueued
QVector< CBFPacketEntry * > m_CBFPacketBuffer
GnAddr gnAddr() const
gnAddr GnAddr field getter
bool isDuplicatePacketDetectionTimestampSN(quint32 lastReceivedTimestamp, quint32 nowReceivedTimestamp, quint16 lastReceivedSN, quint16 nowReceivedSN)
isDuplicatePacketDetectionTimestamp Calculate if the packet is a duplicate using the timestamp and th...
bool update(GBCPacket packet, int timeToBuffer)
update Update the packet of the buffer.
bool erase(GBCPacket packet)
erase Remove packet from the buffer.
FakeGPSProvider * m_paramGPS
void killAll()
killAll Signal used to kill all the buffer entries.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the GnAddr.
QHash< QByteArray, int > * m_CBFPBCounter
void sendPacket(GBCPacket packet)
sendPacket Slot used to send packet (GBC case).
int addPacket(BasicHeader bh, CommonHeader ch, GBCPacket packet, QByteArray payload, int timeToBuffer)
addPacket Add packet to the buffer.
bool isDuplicateTimestamp(GBCPacket packet)
isDuplicateTimestamp Check is the packet is duplicate.
#define itsGnCbfPacketbufferSize
QHash< QByteArray, LocationTableEntry > * m_locationTable
quint16 sequenceNumber() const
sequenceNumber GUC sequence number getter.
ParameterNetwork * m_paramNetwork
LongPositionVector soPv() const
soPv GUC SO PV getter.
CBFPacketBuffer()
CBFPacketBuffer Default constructor.
void lpvSent()
lpvSent Signal sent to advertised of an LPV sending.