Browse Source

fix some code

heydari
Alireza 3 years ago
parent
commit
310e843d28
  1. 5
      Plx/include/LowLevel/HonaLowLevelAPI.h
  2. 29
      Plx/include/LowLevel/HonaPacket.h
  3. 9
      Plx/include/LowLevel/Setting/Setting.h

5
Plx/include/LowLevel/HonaLowLevelAPI.h

@ -3,6 +3,9 @@
#include <QObject>
#include "LowLevel/Setting/Setting.h"
#include "HonaPacket.h"
class HonaLowLevelAPI : public QObject
{
Q_OBJECT
@ -29,7 +32,7 @@ private:
int hiruGetDOA();
signals:
void signalToTop(QList<&HonaPacket> honaPacketList, int i, int j);
void signalToTop(QList<HonaPacket*> honaPacketList, int i, int j);
//uncrustify off
public slots:
//uncrustify on

29
Plx/include/LowLevel/HonaPacket.h

@ -2,13 +2,12 @@
#define HONAPACKET_H
#include <QtGlobal>
#include "include/LowLevel/Utils/Utils.h"
#include "include/LowLevel/Utils/Utils.h"
class HonaPacket
{
private:
qreal toaClock;
honaPacketType m_PacketType;
quint32 m_PacketNumber;
@ -25,39 +24,39 @@ private:
public:
HonaPacket();
/******************************************************************/
honaPacketType getPacketType(void);
void setPacketType(honaPacketType &temp);
honaPacketType getPacketType();
void setPacketType(honaPacketType& temp);
/******************************************************************/
quint32 getPacketNumber(void);
quint32 getPacketNumber();
void setPacketNumber(quint32 temp);
/******************************************************************/
qulonglong getToa(void);
qulonglong getToa();
void setToa(qulonglong temp);
/******************************************************************/
quint32 getDoa(void);
quint32 getDoa();
void setDoa(quint32 temp);
/******************************************************************/
quint32 getPa1(void);
quint32 getPa1();
void setPa1(quint32 temp);
/******************************************************************/
quint32 getPa2(void);
quint32 getPa2();
void setPa2(quint32 temp);
/******************************************************************/
quint32 getPa3(void);
quint32 getPa3();
void setPa3(quint32 temp);
/******************************************************************/
quint32 getPa4(void);
quint32 getPa4();
void setPa4(quint32 temp);
/******************************************************************/
quint32 getCode(void);
quint32 getCode();
void setCode(quint32 temp);
/******************************************************************/
quint32 getCodeL(void);
quint32 getCodeL();
void setCodeL(quint32 temp);
/******************************************************************/
quint32 getCodeM(void);
quint32 getCodeM();
void setCodeM(quint32 temp);
/******************************************************************/
};
#endif // HONAPACKET_H
#endif //HONAPACKET_H

9
Plx/include/LowLevel/Setting/Setting.h

@ -1,4 +1,3 @@
#ifndef SETTINGS_H
#define SETTINGS_H
@ -14,7 +13,6 @@ typedef struct _HIRUSETTINGS
quint32 threshold = 0;
quint32 timeout = 1000;
quint32 count = 5;
}hiruSettings;
/***********************************************************************************************/
typedef struct _HSRUSETTINGS
@ -27,15 +25,14 @@ typedef struct _HSRUSETTINGS
quint32 honaSPTHR = 20; //mode4
quint32 intM4_THR = 20; //mode4
quint32 resM4_THR = 20; //mode4
}hsruSettings;
/***********************************************************************************************/
typedef struct _HONASETTINGS
struct HonaSetting
{
quint32 hsruSettings;
quint32 hiruSettings;
};
}honaSettings;
/***********************************************************************************************/
#endif // SETTING_H
#endif //SETTING_H

Loading…
Cancel
Save