Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning if motors are too close to top of work area #731

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CalibrationWidgets/vertDistToMotorsGuess.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def dismiss_popup(self):
def enterValues(self):
try:
dist = float(self.enterMeasurement.text)
self.data.config.set('Maslow Settings', 'motorOffsetY', str(dist))

if dist > 300:
self.data.config.set('Maslow Settings', 'motorOffsetY', str(dist))
else:
self.data.message_queue.put("Message: Warning: The value you entered for the distance between the motors and the top of the work area is very small. This may cause too much strain on the motors at the top of the sheet.")
self.readyToMoveOn()
except:
self.data.message_queue.put("Message: Couldn't convert that to a number...")
Expand Down