added global reference generator to spindle_controller.ops, not yet homing well, needs more testing