public void CenterView() { lock (_driver.SyncLock) { _driver.SetMovingSpeed(HorizontalMotorIndex, 300); _driver.SetMovingSpeed(VerticalMotorIndex, 300); _driver.SetGoalPositionInDegrees(HorizontalMotorIndex, HorizontalCenter); _driver.SetGoalPositionInDegrees(VerticalMotorIndex, VerticalCenter); } _centering = true; }
public void Setup() { lock (_driver.SyncLock) { foreach (var servo in AllMotorIds) { _driver.SetComplianceSlope(servo, ComplianceSlope.S64); _driver.SetMovingSpeed(servo, 1023); } } }