openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
521 B

#pragma once
#include <QOpenGLFunctions>
#include <QOpenGLWidget>
#include <QTimer>
#include "ui/ui.h"
// container window for the NVG UI
class OnroadWindow : public QOpenGLWidget, protected QOpenGLFunctions {
Q_OBJECT
public:
using QOpenGLWidget::QOpenGLWidget;
explicit OnroadWindow(QWidget* parent = 0) : QOpenGLWidget(parent) {};
~OnroadWindow();
protected:
void paintGL() override;
void initializeGL() override;
private:
double prev_draw_t = 0;
public slots:
void update(const UIState &s);
};