Using M4 and M5 as 2 extra Z movement axes

Has anyone made this possible? I’ve been roaming through the firmware for two weeks now and I’m having trouble realizing my goal. Now, I know for a fact that the M4 and M5 outputs can be used for that purpose because I have tried it, I changed the config of the alpha stepper to the outputs of the M4 and M5 pins, and it worked as normal. So I know these outputs can be used with the same stepper motors to create 2 extra Z axes.

I’m having trouble though finding in the source code where it routes a command (i.e G0) received. So for example, I send a “G0 X…” command, I’m having a hard time finding where this gets processed as to actually activate the M1 motor.
I have created my 2 extra stepper motors, configured them for the outputs and all, I’m just wondering where should I look to set that when a command received that contains ‘V’ (since I’ll name my 2 extra axes V and W, therefor a command like “G0 V100”), it will activate the M4 output.

Imported from wikidot

Hey !

Smoothie currently doesn’t support adding arbitrary axes like that.
It’s a planned feature, but we don’t support it, and as far as I know nobody does.

Cheers