CSharpRoboticsLib.WPIExtensions.SpeedControllerGroup.SpeedControllerGroup C# (CSharp) Method

SpeedControllerGroup() public method

Creates new ISpeedControllers of the given Type at the given ports
public SpeedControllerGroup ( Type controllerType ) : System
controllerType System.Type type of controller to create
return System
        public SpeedControllerGroup(Type controllerType, params int[] ports)
        {
            m_controllers = new ISpeedController[ports.Length];
            for (int i = 0; i < ports.Length; i++)
            {
                m_controllers[i] = (ISpeedController)Activator.CreateInstance(controllerType, ports[i]);
            }
        }

Same methods

SpeedControllerGroup::SpeedControllerGroup ( ) : System