Onroad compass
Added toggle for an onroad compass.
This commit is contained in:
@@ -39,6 +39,28 @@ private:
|
||||
UIScene &scene;
|
||||
};
|
||||
|
||||
class Compass : public QWidget {
|
||||
public:
|
||||
explicit Compass(QWidget *parent = nullptr);
|
||||
|
||||
void initializeStaticElements();
|
||||
void updateState(int bearing_deg);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private:
|
||||
int bearingDeg;
|
||||
int circleOffset;
|
||||
int compassSize;
|
||||
int degreeLabelOffset;
|
||||
int innerCompass;
|
||||
int x;
|
||||
int y;
|
||||
QPixmap compassInnerImg;
|
||||
QPixmap staticElements;
|
||||
};
|
||||
|
||||
class ExperimentalButton : public QPushButton {
|
||||
Q_OBJECT
|
||||
|
||||
@@ -126,6 +148,8 @@ private:
|
||||
|
||||
UIScene &scene;
|
||||
|
||||
Compass *compass_img;
|
||||
|
||||
QHBoxLayout *bottom_layout;
|
||||
|
||||
bool accelerationPath;
|
||||
@@ -133,6 +157,7 @@ private:
|
||||
bool alwaysOnLateral;
|
||||
bool blindSpotLeft;
|
||||
bool blindSpotRight;
|
||||
bool compass;
|
||||
bool conditionalExperimental;
|
||||
bool experimentalMode;
|
||||
bool leadInfo;
|
||||
@@ -146,6 +171,7 @@ private:
|
||||
float cruiseAdjustment;
|
||||
float laneWidthLeft;
|
||||
float laneWidthRight;
|
||||
int bearingDeg;
|
||||
int cameraView;
|
||||
int conditionalSpeed;
|
||||
int conditionalSpeedLead;
|
||||
|
||||
Reference in New Issue
Block a user