代码拉取完成,页面将自动刷新
#ifndef BACKOFF_H
#define BACKOFF_H
#include <QMainWindow>
#include <QTimer>
#include <QEvent>
#include <QMessageBox>
#include <QDebug>
extern "C"{
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "v4l2/v4l2.h"
#include "v4l2/yuv2bgr.h"
}
#define GEC6818_SR04_DISTANCE _IOR('S', 1, unsigned long)
#define GEC6818_K3_STA _IOR('K', 2, unsigned long)
namespace Ui {
class Backoff;
}
class Backoff : public QMainWindow
{
Q_OBJECT
public:
explicit Backoff(QWidget *parent = nullptr);
~Backoff();
private slots:
void video();
// void get_distance();
// void go_home();
void closeEvent(QCloseEvent *event);
private:
Ui::Backoff *ui;
QTimer *t_video;
// QTimer *t_sr04;
// QTimer *t_return;
FrameBuffer frame;
int vfd;
};
#endif // BACKOFF_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。