private void OnCheckedChanged(object sender, EventArgs e) { if (this.Checked) { Value = _axis.CurrentPosition; } }
/// <summary> /// Get the motor counts given the length /// </summary> /// <param name="ml"></param> /// <returns></returns> public virtual double ToMotorCounts(MLength ml) { Millimeters mm = new Millimeters(ml); return(Math.Round(mm.Val * MotorCountsPerMM)); }