Skip to content

Commit

Permalink
TMC disable autotune button for unsupported motors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultrawipf committed Feb 7, 2024
1 parent 75e6aa6 commit e889583
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
- Added speed limiter axis option
- Added basic translation function
- Fixed CS selection in SPI buttons
- Added axis output torque to FX live graph
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions pydfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# USB device handle
__dev = None

__verbose = None
__verbose = True

__chunksize = 512

Expand Down Expand Up @@ -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


Expand All @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions tmc4671_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e889583

Please sign in to comment.