Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.69 KB | None | 0 0
  1.     -- unsigned char Name_;     //  Rocket name
  2.     -- int           Escort_;   //  Escort(?): 0-no, 1-launch aircraft, 2-another aircraft, 3-from the ground
  3.     -- int           Head_Type_;// Type of homing head (see above)
  4.     --              sigma = {x, y, z}, maximum aiming error in meters, in coordinates of the target. x- logitudinal, y-vertical, z-transverse
  5.     -- float         M_;        //  gross weight in kg
  6.     -- float         H_max_;    //  maximum flight altitude
  7.     -- float         H_min_;    //  minimum flight altitude
  8.     -- float         Diam_;     //  case diameter in mm
  9.     -- int           Cx_pil;    //  Cx как подвески (Cx like pendants?)
  10.     -- float         D_max_;    //  Low launch maximum range
  11.     -- float         D_min_;    //  Minimum starting range
  12.     -- bool          Head_Form_;// false - hemispherical shape of head,true - animated (~conical)
  13.     -- float         Life_Time_;//  lifetime (self-destruct time), sec
  14.     -- double        Nr_max_;   // Maximum overload on turns
  15.     -- float         v_min_;    // minimum speed
  16.     -- float    v_mid_;  // average speed
  17.     -- float         Mach_max_; // maximum mach number
  18.     -- float         t_b_;      // engine start time
  19.     -- float         t_acc_;    // acceleration run time
  20.     -- float         t_marsh_;  // march time
  21.     -- float         Range_max_;// maximum starting range at maximum height
  22.     -- float         H_min_t_;  // minimum height of the target over the relief, m    
  23.     -- float         Fi_start_; // launch tracking and sighting angle
  24.     -- float         Fi_rak_;   // allowable target angle (rad)
  25.     -- float         Fi_excort_;// target tracking angle (sight) of the missile
  26.     -- float          Fi_search_;// free angle limit
  27.     -- float          OmViz_max_;// line of sight speed
  28.     -- float         Damage_;// direct damage
  29.     -- /*   int           Engine_Type_; // Engine type: 1 - solid;
  30.                              -- // 2 - Liquid Rocket Engine (RD) (LRE);
  31.                              -- // 3 - Direct-flow Air taxiway ;
  32.                              -- // 4 - accelerator-1 + LRE
  33.                              -- // 5 - turbojet
  34.                              -- // 6 - turbojet + accelerator
  35.     -- int           Stage_;    // number of steps*/
  36.     -- float         X_back_;   // coordinates of the center of the nozzle in the axes of the rocket
  37.     -- float         Y_back_;
  38.     -- float         Z_back_;
  39.     -- float         X_back_acc_; // coordinates of the center of the accelerator nozzle in the axes of the rocket
  40.     -- float         Y_back_acc_;
  41.     -- float         Z_back_acc_;
  42.     -- float          Reflection;   // effective reflective surface, square meters
  43.  
  44.    
  45.     -- double        KillDistance; Kill distances - this distance is used to fire a fuze
  46.  
  47.     -- // These are warheads used to simulate explosions
  48.     -- // Due to the architecture of blocksim we have to use two schemes -
  49.     -- // one for server object (which actually makes damage), and other for
  50.     -- // client object (which does not make any damage)
  51.    
  52.     -- Instant rocket viewing angle:
  53.     -- IR GOS +- 1 degree
  54.     -- RS GOS +- 5 degrees
  55.  
  56.  
  57.  
  58. local MBDA_Mistral = {
  59.   category = CAT_AIR_TO_AIR,
  60.   name = "MBDA_Mistral",            -- unsigned char Name_; //  Rocket name
  61.   user_name = _("MBDA Mistral"),
  62.   wsTypeOfWeapon = {
  63.     wsType_Weapon,
  64.     wsType_Missile,
  65.     wsType_AA_Missile,
  66.     WSTYPE_PLACEHOLDER
  67.   },
  68.   Escort = 0,       -- int Escort_; Escort(support?): 0-no, 1-launch aircraft, 2-another aircraft, 3-from the ground
  69.   Head_Type = 1,    -- int Head_Type_; Type of homing head (InfraredSeeker = 1, ActiveRadar = 2, AntiRadar = 3, LaserHoming = 4, Autopilot = 5, SemiActiveRadar = 6, SemiAutoAT = 7
  70.   sigma = {1,1,1},  -- sigma = {x, y, z}; maximum aiming error in meters, in coordinates of the target. x- logitudinal, y-vertical, z-transverse
  71.   M = 19.7,         -- float M_; gross weight in kg
  72.   H_max = 18000,    -- float H_max_; maximum flight altitude
  73.   H_min = -1,       -- float H_min_; minimum flight altitude
  74.   Diam = 90,        -- float Diam_; case diameter in mm
  75.   Cx_pil = 1.29,    -- int Cx_pil; Cx как подвески (Cx like pendants?)
  76.   D_max = 7000,     -- float D_max_; maximum launch range at low alt
  77.   D_min = 500,      -- float D_min_; Minimum launch range
  78.   Head_Form = 0,    -- bool Head_Form_; false - hemispherical seeker head,true - animated (conical)
  79.   Life_Time = 17,   -- float Life_Time_; lifetime (self-destruct time), sec
  80.   Nr_max = 30,      -- double Nr_max_; Maximum G
  81.   v_min = 669.8,    -- float v_min_; minimum speed
  82.   v_mid = 904.4,    -- float v_mid_; average speed
  83.   Mach_max = 2.66,  -- float Mach_max_; maximum mach number
  84.   t_b = 0,          -- float t_b_; engine start time
  85.   t_acc = 5,        -- float t_acc_; booster burn time
  86.   t_marsh = 6.8,    -- float t_marsh_; sustainer burn time
  87.   Range_max = 14000,-- float Range_max_; maximum launch range at maximum height
  88.   H_min_t = 0,      -- float H_min_t_; minimum target altitude agl, m  
  89.   Fi_start = 1,     -- float Fi_start_; launch tracking and sighting angle
  90.   Fi_rak = 3.14152, -- float Fi_rak_; allowable target angle (rad)
  91.   Fi_excort = 1,    -- float Fi_excort_; target tracking angle (sight) of the missile
  92.   Fi_search = 99.9, -- float Fi_search_; free angle limit
  93.   OmViz_max = 99.9, -- float OmViz_max_; line of sight speed
  94.   warhead = {
  95.     mass = 3,
  96.     expl_mass = 5.1,
  97.     other_factors = {
  98.       1,
  99.       1,
  100.       1
  101.     },
  102.     obj_factors = {1, 1},
  103.     concrete_factors = {
  104.       1,
  105.       1,
  106.       1
  107.     },
  108.     cumulative_factor = 0,
  109.     concrete_obj_factor = 0,
  110.     cumulative_thickness = 0,
  111.     piercing_mass = 0.6,
  112.     caliber = 90
  113.   },
  114.   Damage = 25,  -- float Damage_; direct damage
  115.   exhaust = {
  116.     0.7,
  117.     0.7,
  118.     0.7,
  119.     0.2
  120.   },
  121.   X_back = -1,      -- float X_back_; coordinates of the center of the nozzle in the axes of the rocket
  122.   Y_back = 0,       -- float Y_back_;
  123.   Z_back = 0,       -- float Z_back_;
  124.   Reflection = 0.0182,  -- float Reflection; effective reflective surface, square meters
  125.   KillDistance = 7,     -- double KillDistance; Kill distances - this distance is used to fire a fuze
  126.   SeekerSensivityDistance = 20000,  -- The range of target with IR value = 1. In meters.
  127.   ccm_k0 = 0.5,         -- Counter Countermeasures Probability Factor. Value = 0 - missile has absolutely resistance to countermeasures. Default = 1 (medium probability)
  128.   SeekerCooled = true,  -- True is cooled seeker and false is not cooled seeker.
  129.   shape_table_data = {
  130.     {
  131.       name = "MBDA_Mistral",
  132.       file = "MBDA_Mistral",
  133.       life = 1,
  134.       fire = {0, 1},
  135.       username = "MBDA Mistral",
  136.       index = WSTYPE_PLACEHOLDER
  137.     }
  138.   },
  139.   ModelData = {
  140.     58,         -- model params count
  141.     0.2,        -- characteristic area
  142.    
  143.     -- Сx dependency parameters
  144.     0.004,      -- Cx_k0 планка Сx0 на дозвуке ( M << 1)
  145.     0.008,      -- Cx_k1 высота пика волнового кризиса
  146.     0.004,      -- Cx_k2 крутизна фронта на подходе к волновому кризису
  147.     0.012,      -- Cx_k3 планка Cx0 на сверхзвуке ( M >> 1)
  148.     0.004,      -- Cx_k4 крутизна спада за волновым кризисом
  149.     1.2,        -- коэффициент отвала поляры (пропорционально sqrt (M^2-1))
  150.    
  151.     -- параметры зависимости Cy
  152.     1.3,        -- Cy_k0 планка Сy0 на дозвуке ( M << 1)
  153.     1.2,        -- Cy_k1 планка Cy0 на сверхзвуке ( M >> 1)
  154.     1.2,        -- Cy_k2 крутизна спада(фронта) за волновым кризисом  
  155.    
  156.     0.4,        -- 7 Alfa_max Maximum balancing angle, radians (максимальный балансировочный угол, радианы)
  157.     0,          -- angular velocity created by the moment of gas rudders (angular velocity created by thrust vectoring?)
  158.    
  159.     -- Engine data. Time, fuel flow, thrust.
  160.     --  t_statr     t_b     t_accel     t_march     t_inertial      t_break     t_end           -- Stage
  161.             -1,     -1,          5,         6.8,            0,            0,    1000000000,     -- time of stagem sec
  162.              0,      0,      1.163,           0,            0,            0,             0,     -- fuel flow rate in kg/sec
  163.              0,      0,       3100,           0,            0,            0,             0,     -- thrust, N
  164.              
  165.     11.8,   -- self-destruction timer, sec
  166.     11.8,   -- power system operating time, sec
  167.     0,      -- self-destruct altitude, m
  168.     0.1,    -- control deplay time (launch maneuver safety delay), sec
  169.     1000000000, -- range to the target at time of launch beyond which the rocket lofts, m
  170.     1000000000, -- distance to target at which loft ends and missile switches to proportional navigation, m
  171.     0,      -- синус угла возвышения траектории набора горки (sine of elevation?)
  172.     30,     -- продольное ускорения взведения взрывателя (longitudinal acceleration arming (cocking?) fuse)
  173.     0,      -- speed imparted by ejection device, expelling charge, etc
  174.     1.19,   -- characteristic of the SAU-ROCKET system, second-order filter coefficient K0
  175.     1,      -- характристика системы САУ-РАКЕТА,  second-order filter coefficient K1
  176.     2,      -- характристика системы САУ-РАКЕТА,  полоса пропускания контура управления
  177.     0,      -- дальность полета в горизонт с располагаемой перегрузкой Navail >= 1.0 на высоте H=2000 (Range to the horizon with disposable overload Naval >= 1.0 at a height of 200)
  178.     0,      -- крутизна зависимости  дальность полета в горизонт с располагаемой перегрузкой Navail >= 1.0 от высоты H (slope of the dependence of the flight range to the horizon with a disposable overload Navail> = 1.0 on height H)
  179.     0,      --  coefficient of corrections to the distance based on speed of shooter
  180.     0,      -- dimensionless coefficient. SPG missile performance
  181.     0,      -- Rocket flight time forecast
  182.     -- DLZ. Data for calculating launch ranges (indication on the sight)
  183.     11000,  -- range aspect 180 (hot), H = 10km, V=900kph
  184.     7000,   -- range aspect 0 (cold), H=10km, V=900kph
  185.     7000,   -- range aspect 180 (hot), Н=1000m, V=900kph
  186.     0.2,    -- Decrease in launch range when target's velocity vector deviates from the line of sight of the target
  187.     1,      -- Vertical plane. The slope of the curve of the permitted launch range in the lower hemisphere. Range reduction when shooting down.
  188.     1.4,    -- Vertical plane. The slope of the curve allowed range launch in the upper hemisphere. Range increase when shooting up.
  189.     -3,     -- Vertical plane. The inflection angle of the range curve, upper - lower hemisphere.
  190.     0.5     -- Change of the slope coefficients of the curve in the upper and lower hemispheres depending on shooter's altitude.
  191.   }
  192. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement