I am looking for a way to use klipper as a Platform to realize motion Data generated from an external Program in real-time.
The Idea is to have commands coming in through MQTT as json format (mainly containing timestamps and the position for each axis) and handling the realization of these commands .
The kinematics will be none as there will just be a bunch of independent steppers as a generic drive (the plan is to be highly scalable and potentially drive thousands of motors) connected via network.
For this use case the klippy.py main entry point seems like a logical point to include a custom class for the conversion into python calls. So probably the main printer object would need to be passed into this class.
My question is, which functions would need to be called inside this new class to realize a single move (preferrably to be set in mm) at the time set in the timestamp in the MQTT message?
Is there a way to get the current status (MCU connection and positions of the axes) from the Printer Object?