Skip to content

Commit

Permalink
FW 3.40 support, added VESC ID to mc_values
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Jul 23, 2018
1 parent 48e97be commit 9e3de2a
Show file tree
Hide file tree
Showing 28 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ void Commands::processPacket(QByteArray data)
values.position = -1.0;
}

if (vb.size() >= 1) {
values.vesc_id = vb.vbPopFrontUint8();
} else {
values.vesc_id = 255;
}

emit valuesReceived(values);
} break;

Expand Down
2 changes: 2 additions & 0 deletions datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ struct MC_VALUES {
Q_PROPERTY(int tachometer_abs MEMBER tachometer_abs)
Q_PROPERTY(double position MEMBER position)
Q_PROPERTY(mc_fault_code fault_code MEMBER fault_code)
Q_PROPERTY(uint8_t vesc_id MEMBER vesc_id)
Q_PROPERTY(QString fault_str MEMBER fault_str)

public:
Expand All @@ -114,6 +115,7 @@ struct MC_VALUES {
int tachometer_abs;
double position;
mc_fault_code fault_code;
uint8_t vesc_id;
QString fault_str;
};

Expand Down
Binary file modified res/firmwares/410_o_411_o_412/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_default_no_hw_limits.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/410_o_411_o_412/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_33k.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/46_o_47/VESC_ws2811_33k.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_0005ohm.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/48/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_default_no_hw_limits.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/60/VESC_ws2811.bin
Binary file not shown.
Binary file modified res/firmwares/75_300/VESC_default.bin
Binary file not shown.
Binary file modified res/firmwares/75_300/VESC_default_no_hw_limits.bin
Binary file not shown.
Binary file modified res/firmwares/75_300/VESC_servoout.bin
Binary file not shown.
Binary file modified res/firmwares/75_300/VESC_ws2811.bin
Binary file not shown.
3 changes: 3 additions & 0 deletions res/firmwares/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
=== FW 3.40 ===
* Added motor controller ID to COMM_GET_VALUES.

=== FW 3.39 ===
* Updated HW75_300.
* Added AUX output support.
Expand Down
Binary file modified res/firmwares/DAS_RS/VESC_default.bin
Binary file not shown.
1 change: 1 addition & 0 deletions res/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ p, li { white-space: pre-wrap; }
<cDefine></cDefine>
<valInt>0</valInt>
<enumNames>3.39</enumNames>
<enumNames>3.40</enumNames>
</fw_version>
<help_battery_cutoff>
<longName>Soft Battery Cutoff Calculator</longName>
Expand Down

0 comments on commit 9e3de2a

Please sign in to comment.