Moves the given axes in the negative direction until a timeout or endstop is reached. This function loses the state machine's position.
(self, codes, flags, comment)
| 171 | self.state.lose_position(flags) |
| 172 | |
| 173 | def find_axes_minimums(self, codes, flags, comment): |
| 174 | """Moves the given axes in the negative direction until a timeout |
| 175 | or endstop is reached. |
| 176 | This function loses the state machine's position. |
| 177 | """ |
| 178 | axes = makerbot_driver.Gcode.parse_out_axes(flags) |
| 179 | if len(axes) == 0: |
| 180 | return |
| 181 | #We need some axis information to calc the DDA speed |
| 182 | axes_feedrates, axes_SPM = self.state.get_axes_feedrate_and_SPM(axes) |
| 183 | dda_speed = makerbot_driver.Gcode.calculate_homing_DDA_speed( |
| 184 | codes['F'], |
| 185 | axes_feedrates, |
| 186 | axes_SPM |
| 187 | ) |
| 188 | try: |
| 189 | self.s3g.find_axes_minimums(axes, dda_speed, self.state.profile.values[ |
| 190 | 'find_axis_minimum_timeout']) |
| 191 | except Exception: |
| 192 | raise |
| 193 | else: |
| 194 | self.state.lose_position(flags) |
| 195 | |
| 196 | def set_position(self, codes, flags, comment): |
| 197 | """Explicitely sets the position of the state machine and bot |
nothing calls this directly
no test coverage detected