Skip to content

Commit

Permalink
debounce and visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrwang committed Jun 6, 2024
1 parent b90e713 commit e371a59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NERODevelopment/content/RunInfo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ Item {

Rectangle {
id: rightBlackRectangle
width: runInfo.width / 2.2
width: runInfo.width / 2.3
height: runInfo.height * 0.8
color: "black"
x: runInfo.width / 1.85

anchors {
right: parent.right
verticalCenter: parent.verticalCenter
}

Expand All @@ -95,6 +95,7 @@ Item {
anchors {
left: parent.left
verticalCenter: parent.verticalCenter
rightMargin: runInfo.width
}
font.pixelSize: Math.min(runInfo.height * 0.6, runInfo.width * 0.08)
color: "black"
Expand Down
1 change: 1 addition & 0 deletions NERODevelopment/src/controllers/efficiencycontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EfficiencyController::EfficiencyController(Model *model, QObject *parent)
connect(m_updateTimer, &QTimer::timeout, this,
&EfficiencyController::updateCurrentTime);
m_updateTimer->setInterval(1);
this->m_debounceOffset = 2000;
}

int EfficiencyController::currentMaxTorque() const {
Expand Down

0 comments on commit e371a59

Please sign in to comment.