Homing for inverted polar printer kinematics

Hello everyone,

I have recently been working on a project that requires a printer with polar kinematics where the column and axis are rotating instead of the bed. I met some difficulties when trying to implement a proper homing procedure that would locate the alpha axis relative to the rest of the printer.
From what i could see people recommended to create a dummy cartesian kinematic setup to use during homing. Here you can find my implementation, it is working for my application but I am fully aware it is a hack-job, but i thought I would share in case anyone needed to replicate or could give any help improving it.