wip
This commit is contained in:
@@ -88,44 +88,6 @@ private:
|
|||||||
QVector<std::pair<QPixmap, QString>> profile_data_kaofui;
|
QVector<std::pair<QPixmap, QString>> 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<int, QPixmap> wheelImages;
|
|
||||||
QMap<int, QMovie*> 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 {
|
class PedalIcons : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -161,7 +123,6 @@ private:
|
|||||||
void drawText(QPainter &p, int x, int y, const QString &text, int alpha = 255);
|
void drawText(QPainter &p, int x, int y, const QString &text, int alpha = 255);
|
||||||
|
|
||||||
QVBoxLayout *main_layout;
|
QVBoxLayout *main_layout;
|
||||||
ExperimentalButton *experimental_btn;
|
|
||||||
QPixmap dm_img;
|
QPixmap dm_img;
|
||||||
float speed;
|
float speed;
|
||||||
QString speedUnit;
|
QString speedUnit;
|
||||||
|
|||||||
Reference in New Issue
Block a user