From 9dd918b70b1f98271b5ceba9f31cc146ffd3d3fe Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 May 2024 13:30:41 -0500 Subject: [PATCH] wip --- selfdrive/ui/qt/onroad.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/selfdrive/ui/qt/onroad.h b/selfdrive/ui/qt/onroad.h index 66509ac..ae423f2 100755 --- a/selfdrive/ui/qt/onroad.h +++ b/selfdrive/ui/qt/onroad.h @@ -88,44 +88,6 @@ private: QVector> profile_data_kaofui; }; -class ExperimentalButton : public QPushButton { - Q_OBJECT - -public: - explicit ExperimentalButton(QWidget *parent = 0); - void updateState(const UIState &s, bool leadInfo); - -private: - void paintEvent(QPaintEvent *event) override; - void changeMode(); - - Params params; - QPixmap engage_img; - QPixmap experimental_img; - bool experimental_mode; - bool engageable; - - // FrogPilot variables - Params paramsMemory{"/dev/shm/params"}; - UIScene &scene; - - QMap wheelImages; - QMap wheelImagesGif; - - QMovie engage_gif; - QLabel *gifLabel; - - bool docRandomEventTriggered; - bool firefoxRandomEventTriggered; - bool rotatingWheel; - bool treeFiddyRandomEventTriggered; - bool weebRandomEventTriggered; - - int steeringAngleDeg; - int wheelIcon; - int wheelIconGif; - int y_offset; -}; class PedalIcons : public QWidget { Q_OBJECT @@ -161,7 +123,6 @@ private: void drawText(QPainter &p, int x, int y, const QString &text, int alpha = 255); QVBoxLayout *main_layout; - ExperimentalButton *experimental_btn; QPixmap dm_img; float speed; QString speedUnit;