Manual stepper homing in custom module

Basic Information:

Printer Model: just manual steppers
MCU / Printerboard: BTT Octopus
Linux Desktop
klippy.log

klipper.log (28.8 KB)

Describe your issue:

I need to implement a custom klipper module for a project to process MQTT Messages into movements. The movement itself already works, using a MANUAL_STEPPER and the manual_stepper.do_move() function. However, when trying to home the stepper, I only get the error AttributeError: 'greenlet.greenlet' object has no attribute 'timer'.

I am using the function manual_stepper.do_homing_move(movepos=0, speed=100, accel=1000, triggered=True, check_trigger=True)

Is this the correct function to home the stepper? The homing is already defined in the config, so I assume, a simple home() funtion should exist. However when looking for homimg-related in the manual_stepper functions and variables, I only see the do_homing_move() function and the variables homing_accel and can_home.
Calling the do_homing_move() function without parameters results in an error, missing 5 required positional arguments: 'movepos', 'speed', 'accel', 'triggered', and 'check_trigger', so I added the position, speed and acceleration values from my config for testing. The triggered and check_trigger values are the default values from homing.homing_move (called by homing.manual_home, called by manual_stepper.do_homing_move)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.