示例#1
0
    /// <summary>
    /// Initializes the <see cref="DriveJoints"/> static fields.
    /// </summary>
    static DriveJoints()
    {
        listOfSubNodes = new List <RigidNode_Base>();
        motors         = new float[73];

        joystickSerializers = new JoystickSerializer[3];

        for (int i = 0; i < joystickSerializers.Length; i++)
        {
            joystickSerializers[i] = new JoystickSerializer(i);
        }
    }
示例#2
0
    /// <summary>
    /// Initializes the <see cref="DriveJoints"/> static fields.
    /// </summary>
    static DriveJoints()
    {
        listOfSubNodes        = new List <RigidNode_Base>();
        pwm_motor_controllers = new float[PWM_HDR_COUNT + PWM_MXP_COUNT];
        can_motor_controllers = new Dictionary <int, float>();

        joystickSerializers = new JoystickSerializer[3];

        for (int i = 0; i < joystickSerializers.Length; i++)
        {
            joystickSerializers[i] = new JoystickSerializer(i);
        }
    }