Skip to content

Commit e3973ab

Browse files
committed
Debug D
1 parent 1e07f90 commit e3973ab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NERODevelopment/content/Pit.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Rectangle {
1212
property int packTempValue: homeController.packTemp
1313
property int motorTempValue: homeController.motorTemp
1414
property int currentSpeed: homeController.speed
15-
property bool forward: homeController.direction === 1
15+
property bool forward: homeController.direction
1616

1717
property int maxSpeed: 5
1818
property int horizontalMargin: parent.width / 40
@@ -34,6 +34,11 @@ Rectangle {
3434
height: 100
3535
}
3636

37+
onStateOfChargePercentageChanged: () => {
38+
console.log(
39+
"Forward: " + pit.forward + homeController.direction)
40+
}
41+
3742
RowLayout {
3843
id: mainRow
3944
anchors {

NERODevelopment/src/models/raspberry_model.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ void RaspberryModel::connectToMQTT() {
9595
FORWARDBUTTON, BACKWARDBUTTON, RIGHTBUTTON, ENTERBUTTON,
9696
UPBUTTON, DOWNBUTTON, HOMEBUTTON, MODEINDEX,
9797
DIRECTION, REGENPOWER, TORQUEPOWER,
98-
9998
};
10099
MqttClient *client_2 = new MqttClient(nullptr, 1882, client_2_topics);
101100
connect(client_2, &MqttClient::emitServerData, this,

0 commit comments

Comments
 (0)