1 Star 7 Fork 6

Towel Roll/基于Arm和Qt的智能车载系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backoff.h 867 Bytes
一键复制 编辑 原始数据 按行查看 历史
Towel Roll 提交于 2023-07-05 21:59 +08:00 . V02.00.00.00.01
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/towel-roll/SmartCarSystem.git
git@gitee.com:towel-roll/SmartCarSystem.git
towel-roll
SmartCarSystem
基于Arm和Qt的智能车载系统
V2.0

搜索帮助