Skip to content

Commit

Permalink
Merge pull request #731 from MaslowCNC/add-warning-for-motors-vertica…
Browse files Browse the repository at this point in the history
…l-offset

Add warning if motors are too close to top of work area
  • Loading branch information
MaslowCommunityGardenRobot authored Jun 3, 2018
2 parents 8a82a33 + 1fed2c3 commit 432084d
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 432084d

Please sign in to comment.