public override void home(Homing homing_state) { // Always home XY together var homing_axes = homing_state.get_axes(); var home_xy = homing_axes.Contains(0) || homing_axes.Contains(1); var home_z = homing_axes.Contains(2); var updated_axes = new List <int>(); if (home_xy) { updated_axes.Add(0); updated_axes.Add(1); } if (home_z) { updated_axes.Add(2); } homing_state.set_axes(updated_axes); // Do actual homing if (home_xy) { this._home_axis(homing_state, 0, this.rails[0]); } if (home_z) { this._home_axis(homing_state, 2, this.rails[1]); } }
public override void home(Homing homing_state) { // XXX - homing not implemented homing_state.set_axes(new List <int> { 0, 1, 2 }); homing_state.set_homed_position((0.0, 0.0, 0.0, null)); }