コード例 #1
0
        /// <summary>
        /// 初始化飞行器。
        /// </summary>
        /// <param name="propeller1Pin">飞行器1号动力装置的引脚编号。</param>
        /// <param name="propeller2Pin">飞行器2号动力装置的引脚编号。</param>
        /// <param name="propeller3Pin">飞行器3号动力装置的引脚编号。</param>
        /// <param name="propeller4Pin">飞行器4号动力装置的引脚编号。</param>
        /// <param name="computingMode">飞行器控制程序的计算模式。</param>
        public static void Initialize(int propeller1Pin, int propeller2Pin, int propeller3Pin, int propeller4Pin, ComputingMode computingMode)
        {
            _status        = new MiniquadStatus(propeller1Pin, propeller2Pin, propeller3Pin, propeller4Pin);
            _computingMode = computingMode;

            // Initialize the algorithm
            IncrementPIDFlyingControllingAlgorithm.Initialize();
        }
コード例 #2
0
 /// <summary>
 /// 初始化飞行器。
 /// </summary>
 public static void Initialize()
 {
     // Initialize the algorithm
     IncrementPIDFlyingControllingAlgorithm.Initialize();
 }