Skip to content

Commit f277b40

Browse files
committed
debug prints
Signed-off-by: John Thornton <[email protected]>
1 parent c1619c6 commit f277b40

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mesact/src/libmesact/updateini.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def update(self, parent, iniFile):
426426
axis = getattr(parent, f'c{i}_axis_{j}').currentData()
427427
if axis not in axes:
428428
axes.append(axis)
429+
#print(f'AXIS_{axis} MIN_LIMIT {getattr(parent, f"c{i}_min_limit_{j}").text()}')
429430
self.update_key(f'AXIS_{axis}', 'MIN_LIMIT', getattr(parent, f'c{i}_min_limit_{j}').text())
430431
self.update_key(f'AXIS_{axis}', 'MAX_LIMIT', getattr(parent, f'c{i}_max_limit_{j}').text())
431432
self.update_key(f'AXIS_{axis}', 'MAX_VELOCITY', getattr(parent, f'c{i}_max_vel_{j}').text())
@@ -436,6 +437,7 @@ def update(self, parent, iniFile):
436437
self.update_key(f'JOINT_{n}', 'CARD', f'{i}')
437438
self.update_key(f'JOINT_{n}', 'TAB', f'{j}')
438439
self.update_key(f'JOINT_{n}', 'AXIS', getattr(parent, f'c{i}_axis_{j}').currentData())
440+
#print(f'JOINT_{n} MIN_LIMIT {getattr(parent, f"c{i}_min_limit_{j}").text()}')
439441
self.update_key(f'JOINT_{n}', 'MIN_LIMIT', getattr(parent, f'c{i}_min_limit_{j}').text())
440442
self.update_key(f'JOINT_{n}', 'MAX_LIMIT', getattr(parent, f'c{i}_max_limit_{j}').text())
441443
self.update_key(f'JOINT_{n}', 'MAX_VELOCITY', getattr(parent, f'c{i}_max_vel_{j}').text())
@@ -728,6 +730,8 @@ def get_sections(self):
728730
previous = key
729731

730732
def update_key(self, section, key, value):
733+
#if key == 'HOME_IGNORE_LIMITS':
734+
# print(section, key, value)
731735
found = False
732736
start = self.sections[f'[{section}]'][0]
733737
end = self.sections[f'[{section}]'][1]
@@ -737,8 +741,8 @@ def update_key(self, section, key, value):
737741
self.content[index] = f'{key} = {value}\n'
738742
found = True
739743
break
740-
else:
741-
found = False
744+
#else:
745+
# found = False
742746
if not found:
743747
self.content.insert(end, f'{key} = {value}\n')
744748
self.get_sections() # update section start/end

0 commit comments

Comments
 (0)