def get_status(self, eventtime): axes_lim = [0.0, 0.0, 0.0, 0.0] return { 'homed_axes': '', 'axis_minimum': homing.Coord(*axes_lim), 'axis_maximum': homing.Coord(*axes_lim) }
def get_status(self, eventtime): max_xy = math.sqrt(self.max_xy2) axes_min = [-max_xy, -max_xy, self.min_z, 0.] axes_max = [max_xy, max_xy, self.max_z, 0.] return { 'homed_axes': '' if self.need_home else 'XYZ', 'axis_minimum': homing.Coord(*axes_min), 'axis_maximum': homing.Coord(*axes_max) }
def get_status(self, eventtime): axes = [a for a, (l, h) in zip("xyz", self.limits) if l <= h] axes_min = [0.0, 0.0, 0.0, 0.0] axes_max = [0.0, 0.0, 0.0, 0.0] for pos, rail in enumerate(self.rails): axes_min[pos], axes_max[pos] = rail.get_range() return { 'homed_axes': "".join(axes), 'axis_minimum': homing.Coord(*axes_min), 'axis_maximum': homing.Coord(*axes_max) }
def get_status(self, eventtime=None): move_position = self._get_gcode_position() return { 'speed_factor': self._get_gcode_speed_override(), 'speed': self._get_gcode_speed(), 'extrude_factor': self.extrude_factor, 'absolute_coordinates': self.absolute_coord, 'absolute_extrude': self.absolute_extrude, 'homing_origin': homing.Coord(*self.homing_position), 'position': homing.Coord(*self.last_position), 'gcode_position': homing.Coord(*move_position), }
def get_status(self, eventtime): xy_home = "xy" if self.limit_xy2 >= 0. else "" z_home = "z" if self.limit_z[0] <= self.limit_z[1] else "" lim_xy = self.rails[0].get_range() lim_z = self.rails[1].get_range() axes_min = [lim_xy[0], lim_xy[0], lim_z[0], 0.] axes_max = [lim_xy[1], lim_xy[1], lim_z[1], 0.] return { 'homed_axes': xy_home + z_home, 'axis_minimum': homing.Coord(*axes_min), 'axis_maximum': homing.Coord(*axes_max) }
def get_status(self, eventtime): move_position = self._get_gcode_position() busy = self.is_processing_data return { 'speed_factor': self._get_gcode_speed_override(), 'speed': self._get_gcode_speed(), 'extrude_factor': self.extrude_factor, 'absolute_coordinates': self.absolute_coord, 'absolute_extrude': self.absolute_extrude, 'busy': busy, 'move_xpos': move_position[0], 'move_ypos': move_position[1], 'move_zpos': move_position[2], 'move_epos': move_position[3], 'last_xpos': self.last_position[0], 'last_ypos': self.last_position[1], 'last_zpos': self.last_position[2], 'last_epos': self.last_position[3], 'base_xpos': self.base_position[0], 'base_ypos': self.base_position[1], 'base_zpos': self.base_position[2], 'base_epos': self.base_position[3], 'homing_xpos': self.homing_position[0], 'homing_ypos': self.homing_position[1], 'homing_zpos': self.homing_position[2], 'gcode_position': homing.Coord(*move_position), 'action_respond_info': self._action_respond_info, 'action_respond_error': self._action_respond_error, 'action_emergency_stop': self._action_emergency_stop, }
def get_status(self, eventtime): print_time = self.print_time estimated_print_time = self.mcu.estimated_print_time(eventtime) res = dict(self.kin.get_status(eventtime)) res.update({ 'print_time': print_time, 'estimated_print_time': estimated_print_time, 'extruder': self.extruder.get_name(), 'position': homing.Coord(*self.commanded_pos), 'max_velocity': self.max_velocity, 'max_accel': self.max_accel, 'max_accel_to_decel': self.requested_accel_to_decel, 'square_corner_velocity': self.square_corner_velocity}) return res
def get_status(self, eventtime): print_time = self.print_time estimated_print_time = self.mcu.estimated_print_time(eventtime) last_print_start_time = self.last_print_start_time buffer_time = print_time - estimated_print_time if buffer_time > -1. or not self.special_queuing_state: status = "Printing" else: status = "Ready" return { 'status': status, 'print_time': print_time, 'estimated_print_time': estimated_print_time, 'position': homing.Coord(*self.commanded_pos), 'printing_time': print_time - last_print_start_time }
def get_status(self, eventtime): print_time = self.print_time estimated_print_time = self.mcu.estimated_print_time(eventtime) last_print_start_time = self.last_print_start_time buffer_time = print_time - estimated_print_time if buffer_time > -1. or not self.special_queuing_state: status = "Printing" else: status = "Ready" res = dict(self.kin.get_status(eventtime)) res.update({ 'status': status, 'print_time': print_time, 'estimated_print_time': estimated_print_time, 'extruder': self.extruder.get_name(), 'position': homing.Coord(*self.commanded_pos), 'printing_time': print_time - last_print_start_time }) return res