diff --git a/CHANGELOG.md b/CHANGELOG.md index a4a6e27a..eba1fd0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ ### Changes this version: -- Added basic translation function -- Fixed CS selection in SPI buttons -- Added axis output torque to FX live graph +- Disabled tmc autotune button for DC and None motors ### Changes in 1.14.x: - Added TMC space vector PWM checkbox - Added option to prefer energy dissipation in motor for TMC instead of brake resistor -- Added speed limiter axis option \ No newline at end of file +- Added speed limiter axis option +- Added basic translation function +- Fixed CS selection in SPI buttons +- Added axis output torque to FX live graph \ No newline at end of file diff --git a/main.py b/main.py index f1dda0d5..e7fbed89 100644 --- a/main.py +++ b/main.py @@ -55,7 +55,7 @@ import simplemotion_ui # This GUIs version -VERSION = "1.14.1" +VERSION = "1.14.2" # Minimal supported firmware version. # Major version of firmware must match firmware. Minor versions must be higher or equal diff --git a/pydfu.py b/pydfu.py index 393b45fd..2f5c707b 100644 --- a/pydfu.py +++ b/pydfu.py @@ -69,7 +69,7 @@ # USB device handle __dev = None -__verbose = None +__verbose = True __chunksize = 512 @@ -478,6 +478,8 @@ def get_memory_layout(device): result.append(named((addr, last_addr, size, num_pages, page_size), "addr last_addr size num_pages page_size")) addr += size + if __verbose: + print("Mem layout:",result) return result @@ -498,7 +500,7 @@ def list_dfu_devices(*args, **kwargs): .format(entry['addr'], entry['num_pages'], entry['page_size'] // 1024)) - +# TODO page erase and write does not always seem to succeed and may skip data? def write_elements(elements, mass_erase_used, progress=None): """Writes the indicated elements into the target memory, erasing as needed. diff --git a/tmc4671_ui.py b/tmc4671_ui.py index 2948b13e..997c6826 100644 --- a/tmc4671_ui.py +++ b/tmc4671_ui.py @@ -199,10 +199,12 @@ def motorselChanged(self,val): self.spinBox_poles.setEnabled(True) self.doubleSpinBox_fluxoffset.setEnabled(True) self.checkBox_fluxdissipate.setEnabled(True) + self.pushButton_autotunepid.setEnabled(True) else: self.spinBox_poles.setEnabled(False) self.doubleSpinBox_fluxoffset.setEnabled(False) self.checkBox_fluxdissipate.setEnabled(False) + self.pushButton_autotunepid.setEnabled(False) if(data == 3): self.checkBox_svpwm.setEnabled(True)