
//
// Handley Page 0/400
//

[performance]
    MaxSpeed           = 152 // H=0, , ,  
    MaxClimbRate       = 2.5 // H=0, ,   ,  
    MaxClimbCAS        = 110 // H=0, ,   ,  
    ServiceCeiling     = 3050.0 //  ,        ,  ,  Vy=0.5 /
    MaxAltitude        = 5334.0 //     ,  
    MinStructureHealth = 0.959
    MinEngineHealth    = 0.6
    EngineWarming      = true
    TurnRate           = 126.6, 17.2
    CruiseFuelRate     = 3.32 //[/], , =1000, TS=200/, EAS=190/,  50%,  
    PriorityType       = 4 //FIGHTER=1,HEAVY_FIGHTER=2,LIGHT_BOMBER=3,BOMBER=4,LIGHT_RECON=5,RECON=6,SHTURMOVIK=7,CARGO=8

    ////// ClimbTime = <float ALTITUDE>, <float TIME>
    ClimbTime =    0,   0
    ClimbTime =  500, 211
    ClimbTime = 1000, 453
    ClimbTime = 1500, 753
    ClimbTime = 2000,1149
    ClimbTime = 2500,1727
    ClimbTime = 2723,2103

    ////// MaxAltTAS = <float ALTITUDE>, <float TAS>
    MaxAltTAS =    0,151.5
    MaxAltTAS =  500,151
    MaxAltTAS = 1000,150.5
    MaxAltTAS = 1500,149.6
    MaxAltTAS = 2000,148
    MaxAltTAS = 2500,143.9
    MaxAltTAS = 3000,137.2
    
    ////// turn time at altitude (m/s) = <float ALTITUDE>, <float TIME>
    TurnTimeAlt = 0,17.2
    TurnTimeAlt = 3000,33.3

    ////// optimal turn CAS at altitude= <float ALTITUDE>, <float CAS>
    TurnOptimal_CAS_Alt = 0,126.6
    TurnOptimal_CAS_Alt = 3000,130.5
[end]

[cruise]
    RefAngle               = 90.0
    RefRoll                = 60.0
    MaxRoll                = 45.0
    MaxRollClimb           = 10.0
    RefRollFactor          = 0.6
    RefAltError            = 50.0
    RefClimb               = 4.0
    RefClimbFactor         = 1.5
    RefDive                = 10.0
    RefDiveFactor          = 1.5
    TurnOffError           = -10
    TurnOnError            = -2
    MinRPM                 = 550
    MinCruiseCAS           = 110.0
    MinWingmanCAS          = 100.0
    WingLeaderLagCorrectionK = 1.0		//   0.0  1.0(default),        
    PursueWingmanDist      = 150.0		//             
    WingLeaderThrottleLowLimit = 0.5	//        
    WingLeaderThrottleUpLimit  = 0.96	//         
    LandRoundCAS0          = 140		//     ,   2 ,  2  3 
    LandRoundCAS1          = 130		//     4 
    LandRoundCAS2          = 100		//        
    LandingApproachCAS     = 120.0
    LandingTouchDownCAS    = 100.0
    TouchDownDistance      = 100.0	//         
    TouchDownPitch         = 7.5
    LandingApproachCAS_NoFuel  = 100.0
    LandingTouchDownCAS_NoFuel = 90.0
    TouchDownDistance_NoFuel   = 100.0
    TouchDownPitch_NoFuel      = 7.5
    StartTurnBeforeGlissadeDistance = 200.0
    TouchDownPitchUpSpeed  = 70.0	//               
    TouchDownAlignHeight   = 50.0	//   
    SmoothTouchDownHeight  = 3.0	//   " ()"
    LandingThrottleLimit   = false
    BrakePitchMax          = 12.0	//      
    BrakePitchMin          = 10.0	//        BrakeLimMin
    BrakeLimMin            = 0.1	//       BrakePitchMin (  )
    ApproachLowering       = false
    ApproachIgnition       = false
    LandingRoundIgnition   = false
    TouchDownCYRFactor     = 0.0
    RestrictAttackAngle    = true
    MinAttackAngle         = 11.0
    MaxAttackAngle         = 13.8
    MinNegativeAttackAngle = -13.0
    MaxNegativeAttackAngle = -15.0
    MinSlipAngle           = 15.0
    MaxSlipAngle           = 20.0
    TaxiD1                 = 5.0
    TaxiD2                 = 10.0
    TaxiD3                 = 50.0
    TaxiD4                 = 300.0
    TaxiSpeedD1            = 8.0	//      D1,  D2  
    TaxiSpeedD2D3          = 20.0	//      D2  D3,  D2  
    TaxiSpeedD4            = 60.0	//      D4
    TaxiMaxAngle           = 90.0	//      ,       TaxiSpeedD1
    TaxiMaxAside           = 50.0	//      ,       TaxiSpeedD1
    TaxiBrakingThrottleUp  = 0.5	//           TaxiSpeedD1
    TaxiingPitch           = false	//          ,          .   -  .
    TaxiingPIDSpeed        = 15.0	//   PID  [pid_taxiing]  [pid_0]  ,       0,75*TaxiingPIDSpeed   = TakeOffCAS+10
    Switch_2_TaxiingPIDSpeed = 70.0	//   PID  [pid_0]  [pid_taxiing]  .   = LandingTouchDownCAS - 20.0
    TakeOffCAS             = 100.0	//   ,         .
    TakeoffPitch           = 5.0	//        
    TakeoffElevatorSafe    = true
    TakeoffSafePitch       = 0.0
    TakeoffSurfaceSlope    = false
    TakeoffCriticalSlope   = 0.0
    CriticalTakeoffRoll    = 10
    TakeoffYawFactor       = 0
    TakeOffBrakingMax      = 1.0	//          TakeOffBrakingAngle (  pid_taxiing)
    TakeOffBrakingAngle    = 10.0	//     ,      TakeOffBrakingMax
    StallRollRate          = 100.0
    StallYawRate           = 40.0
    StructureAlert         = true
    StructureAlertNy       = 4
    StructureAlertTAS      = 220.0
    AttackIgnitionControl  = false
    TakeoffRefAngle        = 15.0
    MaxFlapsCAS            = 160.0
    MinFlapsCAS            = 180.0
    TakeOFFFlapsAngle      = 0     // 0..1    
    LandingFlapsAngle      = 0     // 0..1     
    FlapsPosQuantity       = 0
    DifferentialBrakes     = false  // "true",    (), "false" -  ()
    OpenCocpitWhileTaxi    = true   //  true -      
    NeedFilter             = true	//     	
    MinStickMoveTime       = 0.0	//           
    MaxStickMoveTime       = 0.2	//            
    MinStickMoveCAS        = 400.0	//      m_MinStickMoveTime
    MaxStickMoveCAS        = 500.0	//      m_MaxStickMoveTime
    CruiseThrottleLimit    = 1.0	//   -    , 0..1 ,   - 1
    taxiWindLimit          = 7.5	//  (/)                ( - 15.0 /)
[end]

[dogfight]
    [novice]
        RefNoseAngle      = 30.0
        MinCAS1           = 90.0
        MaxCAS2           = 150.0	//TurnOptimal_CAS_Alt + 20
        MaxPitchRate      = 120.0
        AttackDistance    = 400.0
        EngageDistance    = 700.0
        MinFireDistance   = 35.0
        MaxFireDistance   = 200.0
        MinOpenFireAngle  = 20.0
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 50.0
        MaxStopFireAngle  = 11.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -60.0
        HBTPositiveBTRoll      = 60.0
        InterceptAltitudeAdvance = 0.0
    [end]
    [normal]
        RefNoseAngle      = 30.0
        MinCAS1           = 70.0
        MaxCAS2           = 140.0	//TurnOptimal_CAS_Alt + 10
        AttackDistance    = 600.0
        EngageDistance    = 900.0
        MinFireDistance   = 30.0
        MaxFireDistance   = 250.0
        MinOpenFireAngle  = 20.0
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 40.0
        MaxStopFireAngle  = 9.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -70.0
        HBTPositiveBTRoll      = 70.0
        InterceptAltitudeAdvance = 0.0
    [end]
    [high]
        RefNoseAngle      = 30.0
        MinCAS1           = 50.0
        MaxCAS2           = 130.0	//TurnOptimal_CAS_Alt
        MaxPitchRate      = 160.0
        AttackDistance    = 800.0
        EngageDistance    = 1200.0
        MinFireDistance   = 25.0
        MaxFireDistance   = 300.0
        MinOpenFireAngle  = 20.0
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 35.0
        MaxStopFireAngle  = 7.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -75.0
        HBTPositiveBTRoll      = 75.0
        InterceptAltitudeAdvance = 150.0
    [end]
    [ace]
        RefNoseAngle      = 30.0
        MinCAS1           = 30.0
        MaxCAS2           = 120.0	//TurnOptimal_CAS_Alt - 10
        MaxPitchRate      = 180.0
        AttackDistance    = 1000.0
        EngageDistance    = 1500.0
        MinFireDistance   = 20.0
        MaxFireDistance   = 400.0
        MinOpenFireAngle  = 20.0
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 30.0
        MaxStopFireAngle  = 5.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -80.0
        HBTPositiveBTRoll      = 80.0
        InterceptAltitudeAdvance = 300.0
    [end]

    MinSafeAltitude0  = 50.0
    MaxSafeAltitude0  = 100.0
    MinSafeAltitude45 = 80.0
    MaxSafeAltitude45 = 150.0
    MinSafeAltitudeVP = 300.0
    MaxSafeAltitudeVP = 600.0

    CASPitchLimit  = false
    MinPitchCAS    = 290.0
    MaxPitchCAS    = 330.0
    STVOffset      = -1.5 // -5.5
    YawAimingAngle = 7.0

    AirTargetToLeaderCriticalDistance = 4000,6000

    DiveCAS   = 300.0
    CruiseCAS = 180.0
    ClimbCAS  = 130.0

    RestrictPitchBySSA = true
    MinPitchSSA = 10.0
    MaxPitchSSA = 15.0

    GunAirAimSmooth = 0.4    //       (  ). [0..1], 0 - , 1 - , -1 - 
[end]

[approach]
    GroundTargetToLeaderCriticalDistance = 4000,6000
    VFAngle              = 0.0
    ApproachCAS          = 140.0
    ApproachRadius       = 800.0
    ApproachDistance     = 3000.0
    ApproachAltitude     = 600.0
    GroundAttackExitAltitude = 100.0   //           (   ,   +40)
    GroundAttackDistance = 800.0
    GroundEngageDistance = 3000.0
    GroundEngageRocketK  = 1.0				// -    m_GroundEngageDistance   
    SpiralAttackApproach = true
    DiveBombAltitude     = 2500.0	//     ,         -      
    DiveBombExitAltitude = 650.0	//      
    DeepDiveWeaponSet    = -1		//  payloads     , -1  ,  15   
    ShallowDiveWeaponSet = -1	//  payloads     , -1  ,  15   
    OwerWingDive         = false	//     , true -   , false -    
    DiveSoftness         = 7.5		// ""       -     ,   ,    -       (  7.5)
    PushDiveEntranceDistance = 1500.0	//  ()         "  ",   ,         ,  ,    - 
    PushDiveEntranceK    = 1.0		// .     "  ",  -   ,  , (. - PushDiveEntranceDistance)*PushDiveEntranceK =    (  1.0)
    ShallowDiveAngle     = 10.0		//    , < 41  -     (  ) >41 -  (  50.0)
    ShallowExitAltitude  = 80.0		//       (   ,   +40)
    ShallowDiveEnterKoef = 1.5		//          , >1 -    , < 1 - ,   .  
    Salvo2WeaponSet      = -1	//  payloads,     / /  2 , -1  ,  15   
    Salvo4WeaponSet      = -1	//  payloads,     / /  4 , -1  ,  15   
    SalvoAllWeaponSet    = 0,1,2,3		//  payloads,     / /  , -1  ,  15   
[end]

[adapt_pid_0]
    CAS     = 100.0
    Roll    = 80.0,   0.0,  4.5, 0.05
    Pitch   = 80.0,   0.0, 13.0, 0.05
    PitchVy = 55.0,   0.0, 16.0, 0.05
    Yaw     = 40.0,   0.0,  8.0, 0.02
    Speed   =100.0, 120.0, 15.0, 0.4
[end]
[adapt_pid_1]
    CAS     = 200.0
    Roll    = 80.0,   0.0,  4.5, 0.05
    Pitch   = 80.0,   0.0, 13.0, 0.05
    PitchVy = 20.0,   0.0,  5.0, 0.05
    Yaw     = 40.0,   0.0,  8.0, 0.02
    Speed   =100.0, 120.0, 15.0, 0.4
[end]
[pid_taxiing]
    Roll    = 20.0,  0.0,  0.0, 0.05
    Pitch   = 13.0,  0.0,  0.0, 0.05
    Yaw     =  2.0,  4.0,  0.0, 0.06
    Speed   = 90.0, 60.0,  0.3, 0.4
    WheelBrakes = 1.5, 0.0, 0.0
[end]
