I added this to G92.4 to set the MCS because I am use to using G92 for setting positions but I realize that it actually sets offsets. My question is what would be a better number.
float x= actuators[0], y= actuators[1], z= actuators[2];
if(gcode->has_letter('X')) x= gcode->get_value('X');
if(gcode->has_letter('Y')) y= gcode->get_value('Y');
if(gcode->has_letter('Z')) z= gcode->get_value('Z');
ActuatorCoordinates real_actuator_position = {x,y,z};
THEROBOT->reset_actuator_position(real_actuator_position);
Imported from wikidot