public void MoveAbsolute(float Position) { if (MyDriverType == 0) { MySSRotator.MoveAbsolute(Position); } else { tl.LogMessage("MoveAbsolute", Position.ToString()); // Move to this position rotatorPosition = Position; rotatorPosition = (float)astroUtilities.Range(rotatorPosition, 0.0, true, 360.0, false); // Ensure value is in the range 0.0..359.9999... } }
private void button4_Click(object sender, EventArgs e) { driver.MoveAbsolute(Convert.ToSingle(textBox4.Text)); }