From Kevin: I'm curious about self.runout_helper.note_filament_present(extruder_pos < self.filament_runout_pos). Would that be correct for retractions? That is, if the filament runout sensor detected a fault (filament not present) and there was a retraction, would that clear the fault? I wonder if if extruder_pos > self.filament_runout_pos: self.runout_helper.note_filament_present(False) might be more accurate. I'm not really sure though.
My initial response: Maybe keep a prev_extruder_pos to detect retractions and act appropriately.
From Kevin: I'm curious about
self.runout_helper.note_filament_present(extruder_pos < self.filament_runout_pos)
. Would that be correct for retractions? That is, if the filament runout sensor detected a fault (filament not present) and there was a retraction, would that clear the fault? I wonder if ifextruder_pos > self.filament_runout_pos: self.runout_helper.note_filament_present(False)
might be more accurate. I'm not really sure though.My initial response: Maybe keep a prev_extruder_pos to detect retractions and act appropriately.