Last change
on this file since 313 was 269, checked in by Sanahuja Guillaume, 6 years ago |
flairgcs:
speed up processing time when receiving datas from uav
triger watchdog while receiving datas from uav
(avoids connection lost in uav)
|
File size:
998 bytes
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[9] | 5 | #ifndef CONNECTIONLAYOUT_H
|
---|
| 6 | #define CONNECTIONLAYOUT_H
|
---|
| 7 |
|
---|
| 8 | #include "Layout.h"
|
---|
| 9 |
|
---|
| 10 | class UdtSocket;
|
---|
| 11 | class DataRemote;
|
---|
| 12 |
|
---|
[15] | 13 | class ConnectionLayout : public Layout {
|
---|
| 14 | Q_OBJECT
|
---|
[9] | 15 |
|
---|
[15] | 16 | public:
|
---|
| 17 | ConnectionLayout(UdtSocket *socket, QString name);
|
---|
| 18 | ~ConnectionLayout();
|
---|
| 19 | void XmlToSend(QDomDocument doc);
|
---|
| 20 | void addDataRemote(DataRemote *data);
|
---|
| 21 | void removeDataRemote(DataRemote *data);
|
---|
[269] | 22 | void LoadXml(QDomDocument *to_parse);
|
---|
[234] | 23 | QString getName();
|
---|
| 24 | static QString getDocRootName(char* buf, int size);
|
---|
[9] | 25 |
|
---|
[15] | 26 | private:
|
---|
| 27 | void drawDatas(char *buf, int buf_size, uint16_t period,
|
---|
| 28 | bool big_endian = false);
|
---|
[234] | 29 | QString name;
|
---|
[15] | 30 | UdtSocket *socket;
|
---|
| 31 | QList<DataRemote *> dataremotes;
|
---|
[234] | 32 |
|
---|
[15] | 33 | private slots:
|
---|
| 34 | void receive(char *buf, int size);
|
---|
[260] | 35 | void udtSocketDestroyed(QObject *obj);
|
---|
[9] | 36 |
|
---|
[15] | 37 | signals:
|
---|
[248] | 38 | void UDTStats(QString stats,bool loosingPackets);
|
---|
[9] | 39 | };
|
---|
| 40 |
|
---|
| 41 | #endif // CONNECTIONLAYOUT_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.