コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public F16()
        {
            // hard coded f16 spec settings
            Init();

            spec.MaxRange    = 3222.48;  // km
            spec.MaxSpeed    = 2414.016; // kmh
            spec.CruiseSpeed = 1320.48;  // kmh

            startNav = new NavPackage(0.0, 0.0, 10000, 6672, Math.PI / 4, 0.0);

            SystemPowerUp(startNav);
        }
コード例 #2
0
        public static void PrintNavData(NavPackage navData)
        {
            string alt   = navData.Alt.ToString().PadRight(21);
            string b     = navData.B.ToString().PadRight(21);
            string v     = navData.V.ToString().PadRight(21);
            string pitch = navData.Pitch.ToString().PadRight(21);
            string lat   = navData.Lat.ToString().PadRight(21);
            string lon   = navData.Lon.ToString().PadRight(21);

            Console.SetCursorPosition(7, 29);
            Console.Write(alt);
            Console.SetCursorPosition(7, 30);
            Console.Write(b);
            Console.SetCursorPosition(7, 31);
            Console.Write(v);
            Console.SetCursorPosition(7, 32);
            Console.Write(pitch);
            Console.SetCursorPosition(7, 33);
            Console.Write(lat);
            Console.SetCursorPosition(7, 34);
            Console.Write(lon);
        }
コード例 #3
0
 /// <summary>
 /// Powers all systems up
 /// </summary>
 /// <param name="startNav"></param>
 private void SystemPowerUp(NavPackage startNav)
 {
     flightComputer.TurnOnNavComputer(startNav);
 }