-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsentframe.h
49 lines (43 loc) · 1.09 KB
/
sentframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef SENTFRAME_H
#define SENTFRAME_H
#include <QObject>
#include <controlcan.h>
#include <QDebug>
#include <unistd.h>
#include <QThread>
#include <QDateTime>
#include <QTimer>
#include <QMutex>
#include <QMutexLocker>
#include <QEventLoop>
typedef struct {
VCI_CAN_OBJ * car_frame;
unsigned len;
int cycle_time;
bool Long_sign;
} CAN_Messages;
class sentframe : public QObject
{
Q_OBJECT
public:
explicit sentframe(QObject *parent = nullptr);
signals:
void Shoot_Error(unsigned);
void feedbackBRO_00();
void feedbackBST_BSD();
void finished();
public slots:
void Initalize();
void Loop_Send_Msg();
void Trans_BSM();
void tx_thread(Action);
void tx_frame(CAN_Messages);
void Auto_transmit(VCI_CAN_OBJ *);
private:
uint err = 0;
CAN_Messages MSG_BHM, MSG_BRM_init, MSG_BRM, MSG_BCP_init, MSG_BCP, MSG_BRO_00, MSG_BRO_AA, MSG_BCL, MSG_BCS_init, MSG_BCS, MSG_BSM,
MSG_BDC_init, MSG_BDC, MSG_BCPP, MSG_BCSP, MSG_BCLP, MSG_BST, MSG_BSD, MSG_BEM;
QTimer *_BaseTimer;
QTimer *_AnBaseTimer;
};
#endif // SENTFRAME_H