mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-06 17:46:07 +01:00
29 lines
572 B
C
29 lines
572 B
C
|
#ifndef $(NAMEUC)_H
|
||
|
#define $(NAMEUC)_H
|
||
|
|
||
|
#include "uavdataobject.h"
|
||
|
|
||
|
class $(NAME): UAVDataObject
|
||
|
{
|
||
|
public:
|
||
|
static const quint32 OBJID = $(OBJID);
|
||
|
static const QString NAME = QString($(NAME));
|
||
|
static const bool SINGLEINST = $(SINGLEINST);
|
||
|
static const quint32 NUMBYTES = sizeof($(NAME)Data);
|
||
|
|
||
|
typedef struct {
|
||
|
$(DATAFIELDS)
|
||
|
} __attribute__((packed)) $(NAME)Data;
|
||
|
|
||
|
$(NAME)();
|
||
|
|
||
|
$(NAME)Data getData();
|
||
|
void setData($(NAME)Data& data);
|
||
|
|
||
|
private:
|
||
|
$(NAME)Data data;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // $(NAMEUC)_H
|