
//
// Bf-110 E2
//modified by Kraut1 for Do17

[performance]
    MaxSpeed           = 529.0
    MaxClimbRate       = 10.2
    ServiceCeiling     = 9500.0
    MinStructureHealth = 0.959
    MinEngineHealth    = 0.6
    EngineWarming      = true
    TurnRate           = 310.0, 31.0

    //, 100% ,  2400/1.3,    ,     
    ////// ClimbTime = <float ALTITUDE>, <float TIME> 
    ClimbTime = 0,0
    ClimbTime = 1000,95
    ClimbTime = 2000,193
    ClimbTime = 3000,294
    ClimbTime = 4000,404
    ClimbTime = 5000,524
    ClimbTime = 6000,668
    ClimbTime = 7000,864

    //, 100% ,  2400/1.3,  ,     
    ////// MaxAltTAS = <float ALTITUDE>, <float TAS>
    MaxAltTAS = 0,456
    MaxAltTAS = 1000,473
    MaxAltTAS = 2000,494
    MaxAltTAS = 3000,506
    MaxAltTAS = 4000,516
    MaxAltTAS = 5000,529
    MaxAltTAS = 6000,523
    MaxAltTAS = 7000,512
    MaxAltTAS = 8000,496

    ////// , 100% ,  2400/1.4,     
    TurnTimeAlt = 500,26.7
    TurnTimeAlt = 1000,27.8
    TurnTimeAlt = 2000,30.0
    TurnTimeAlt = 3000,33.1
    TurnTimeAlt = 4000,37.7
    TurnTimeAlt = 5000,45.4
    TurnTimeAlt = 6000,56.1
    TurnTimeAlt = 7000,72.2
    TurnTimeAlt = 8000,95.0

    ////// optimal turn CAS at altitude= <float ALTITUDE>, <float CAS> , 100% ,  2400/1.4,     
    TurnOptimal_CAS_Alt = 0,230
    TurnOptimal_CAS_Alt = 1000,235
    TurnOptimal_CAS_Alt = 2000,240
    TurnOptimal_CAS_Alt = 3000,240
    TurnOptimal_CAS_Alt = 4000,245
    TurnOptimal_CAS_Alt = 5000,250
    TurnOptimal_CAS_Alt = 6000,250
    TurnOptimal_CAS_Alt = 7000,255
    TurnOptimal_CAS_Alt = 8000,260

    MaxClimbCAS = 280
    MaxClimbRate = 10.5
    MaxAltitude = 8000.0
    CruiseFuelRate = 5.6     //[./.] 300 / (MinCruiseCAS); 1000 ; 50% ,  ,  
    PriorityType = 5				//Kraut1=changed_to_5_FIGHTER=1,HEAVY_FIGHTER=2,LIGHT_BOMBER=3,BOMBER=4,LIGHT_RECON=5,RECON=6,SHTURMOVIK=7,CARGO=8
[end]

[cruise]
    RefAngle               = 90.0
    RefRoll                = 85.0
    MaxRoll                = 60.0
    MaxRollClimb           = 6.0
    RefRollFactor          = 0.5
    RefAltError            = 100.0
    RefClimb               = 10.0
    RefClimbFactor         = 1.5
    RefDive                = 15.0
    RefDiveFactor          = 1.5
    TurnOffError           = -5
    TurnOnError            = -2
    MinRPM                 = 550
    MinCruiseCAS           = 260.0
    MinWingmanCAS          = 220.0
    WingLeaderLagCorrectionK = 1.0		//   0.0  1.0(default),        
    PursueWingmanDist      = 400.0		//             
    WingLeaderThrottleLowLimit = 0.25	//        
    WingLeaderThrottleUpLimit  = 0.95	//         
    LandRoundCAS0          = 270		//     ,   2 ,  2  3 
    LandRoundCAS1          = 260		//     4 
    LandRoundCAS2          = 220		//        
    LandingApproachCAS     = 190.0
    LandingTouchDownCAS    = 170.0
    TouchDownDistance      = 300.0	//         
    TouchDownPitch         = 11.0    
    LandingApproachCAS_NoFuel  = 180.0 	// ( ) 
    LandingTouchDownCAS_NoFuel = 160.0	// ( ) 
    TouchDownDistance_NoFuel   = 300.0		// ( ) 
    TouchDownPitch_NoFuel      = 11.0		// ( ) 
    StartTurnBeforeGlissadeDistance = 550.0	//        4-   ..    4-      
    TouchDownPitchUpSpeed  = 140.0	//               
    TouchDownAlignHeight   = 100.0	//    (  - 15.0)
    SmoothTouchDownHeight  = 3.0	//   " ()"   - 2.0
    LandingThrottleLimit   = false
    BrakePitchMax          = 10.0	//      
    BrakePitchMin          = 5.0	//        BrakeLimMin
    BrakeLimMin            = 0.2	//       BrakePitchMin (  )
    ApproachLowering       = false
    ApproachIgnition       = false
    LandingRoundIgnition   = false
    TouchDownCYRFactor     = 0.0
    RestrictAttackAngle    = true
    MinAttackAngle         = 16.0
    MaxAttackAngle         = 19.0
    MinNegativeAttackAngle = -10.0
    MaxNegativeAttackAngle = -15.0
    MinSlipAngle           = 15.0
    MaxSlipAngle           = 20.0
    TaxiD1                 = 5.0
    TaxiD2                 = 30.0
    TaxiD3                 = 150.0
    TaxiD4                 = 400.0
    TaxiSpeedD1            = 7.0	//      D1,  D2  
    TaxiSpeedD2D3          = 15.0	//      D2  D3,  D2  
    TaxiSpeedD4            = 60.0	//      D4
    TaxiMaxAngle           = 90.0	//      ,       TaxiSpeedD1
    TaxiMaxAside           = 50.0	//      ,       TaxiSpeedD1
    TaxiBrakingThrottleUp  = 0.5	//           TaxiSpeedD1
    TaxiingPitch           = false	//          ,          .   -  .
    TaxiingPIDSpeed        = 120.0	//   PID  [pid_taxiing]  [pid_0]  ,       0,75*TaxiingPIDSpeed   = TakeOffCAS+10
    Switch_2_TaxiingPIDSpeed = 150.0	//   PID  [pid_0]  [pid_taxiing]  .   = LandingTouchDownCAS - 20.0
    TakeOffCAS             = 220.0	//  ,         . 
    TakeoffPitch           = 15.0	//        
    TakeoffElevatorSafe    = true
    TakeoffSafePitch       = 0.0
    TakeoffSurfaceSlope    = false
    TakeoffCriticalSlope   = 0.0
    CriticalTakeoffRoll    = 10
    TakeoffYawFactor       = 0
    TakeOffBrakingMax      = 0.0	//          TakeOffBrakingAngle (  pid_taxiing)
    TakeOffBrakingAngle    = 10.0	//     ,      TakeOffBrakingMax
    StallRollRate          = 160.0
    StallYawRate           = 60.0
    StructureAlert         = true
    StructureAlertNy       = 5		//   ,   =9
    StructureAlertTAS      = 730.0
    AttackIgnitionControl  = false
    TakeoffRefAngle        = 5.0
    MaxFlapsCAS            = 100.0
    MinFlapsCAS            = 200.0
    TakeOFFFlapsAngle      = 0.5   // 0..1    
    LandingFlapsAngle      = 1.0   // 0..1     
    FlapsPosQuantity       = 0
    DifferentialBrakes     = true  // "true",    (), "false" -  ()
    OpenCocpitWhileTaxi    = false   //  true -      
    NeedFilter             = false	//     
    MinStickMoveTime       = 0.1	//           
    MaxStickMoveTime       = 0.1	//            
    MinStickMoveCAS        = 300.0	//      m_MinStickMoveTime
    MaxStickMoveCAS        = 400.0	//      m_MaxStickMoveTime
    CruiseThrottleLimit    = 0.8	//   -    , 0..1 ,   - 1
    taxiWindLimit          = 10.5		//  (/)                ( - 15.0 /)
[end]

[dogfight]
    [novice]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 650.0
        MaxPitchRate      = 180.0
        AttackDistance    = 500.0
        EngageDistance    = 1500.0
        MinFireDistance   = 50.0
        MaxFireDistance   = 400.0
        MinOpenFireAngle  = 14.0
        MaxOpenFireAngle  = 7.0
        MinStopFireAngle  = 28.0
        MaxStopFireAngle  = 14.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -60.0
        HBTPositiveBTRoll      = 60.0
        InterceptAltitudeAdvance = 0.0
    [end]
    [normal]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 600.0
        MaxPitchRate      = 180.0
        AttackDistance    = 800.0
        EngageDistance    = 2000.0
        MinFireDistance   = 50.0
        MaxFireDistance   = 500.0
        MinOpenFireAngle  = 11.0
        MaxOpenFireAngle  = 5.0
        MinStopFireAngle  = 19.2
        MaxStopFireAngle  = 8.5
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -70.0
        HBTPositiveBTRoll      = 70.0
        InterceptAltitudeAdvance = 0.0
    [end]
    [high]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 500.0
        MaxPitchRate      = 180.0
        AttackDistance    = 1200.0
        EngageDistance    = 2500.0
        MinFireDistance   = 50.0
        MaxFireDistance   = 600.0
        MinOpenFireAngle  = 8.5
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 12.7
        MaxStopFireAngle  = 4.5
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -75.0
        HBTPositiveBTRoll      = 75.0
        InterceptAltitudeAdvance = 300.0
    [end]
    [ace]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 450.0
        MaxPitchRate      = 180.0
        AttackDistance    = 2000.0
        EngageDistance    = 3000.0
        MinFireDistance   = 50.0
        MaxFireDistance   = 800.0
        MinOpenFireAngle  = 5.5
        MaxOpenFireAngle  = 1.5
        MinStopFireAngle  = 6.8
        MaxStopFireAngle  = 1.8
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -80.0
        HBTPositiveBTRoll      = 80.0
        InterceptAltitudeAdvance = 1000.0
    [end]

    MinSafeAltitude0  = 50.0
    MaxSafeAltitude0  = 100.0
    MinSafeAltitude45 = 80.0
    MaxSafeAltitude45 = 250.0
    MinSafeAltitudeVP = 600.0
    MaxSafeAltitudeVP = 1200.0

    CASPitchLimit  = false
    MinPitchCAS    = 125.0
    MaxPitchCAS    = 365.0
    STVOffset      = -1.5 // -5.5
    YawAimingAngle = 7.0

    DiveCAS   = 650.0
    CruiseCAS = 400.0
    ClimbCAS  = 280.0

    RestrictPitchBySSA = true
    MinPitchSSA = 10.0
    MaxPitchSSA = 15.0

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

[approach]
    VFAngle              = 0.0
    ApproachCAS          = 350.0
    ApproachRadius       = 800.0
    ApproachDistance     = 2800.0
    ApproachAltitude     = 600.0
    GroundAttackExitAltitude = 100.0   //           (   ,   +40)
    GroundAttackDistance = 300.0
    GroundEngageDistance = 2400.0
    GroundEngageRocketK  = 1.0					// -    m_GroundEngageDistance   
    SpiralAttackApproach = true
    DiveBombAltitude     = 2500.0				//     ,         -      
    DiveBombExitAltitude = 750.0				//      
    DeepDiveWeaponSet    = -1					//  payloads     , -1  ,  15   
    ShallowDiveWeaponSet = 1,2,3,4,5,6,7,8	//  payloads     , -1  ,  15   
    OwerWingDive         = false				//     , true -   , false -    
    DiveSoftness         = 10.0					// ""       -     ,   ,    -      
    PushDiveEntranceDistance = 2500.0			//  ()         "  ",   ,         ,  ,    - 
    PushDiveEntranceK    = 0.8					// .     "  ",  -   ,  , (. - PushDiveEntranceDistance)*PushDiveEntranceK =   
    ShallowDiveAngle     = 30.0					//    
    ShallowExitAltitude  = 220.0				//       (   ,   +40)
    ShallowDiveEnterKoef = 1.3					//          , >1 -    , < 1 - ,   .  
    Salvo2WeaponSet    = 2,5					//  payloads,     / /  2 , -1  ,  15   
    Salvo4WeaponSet    = 3					//  payloads,     / /  4 , -1  ,  15   
    SalvoAllWeaponSet  = 8					//  payloads,     / /  , -1  ,  15   
    GunAimSmooth         = 2.5  //       .  <1 ,  >1 .  =1.8
    AimDamperCompensationTime = 1.45 //   ,    .
[end]

[adapt_pid_0]
    CAS     = 200.0
    Roll    = 23.0,  0.0,  9.0, 0.05
    Pitch   =100.0,  0.0, 30.0, 0.05
    PitchVy = 70.0,  0.0, 70.0, 0.05
    Yaw     = 15.0,  0.0,  8.0, 0.03
    Speed   = 20.0, 50.0, 15.0, 0.2
[end]
[adapt_pid_1]
    CAS     = 280.0
    Roll    = 17.0,  0.0,  6.0, 0.05
    Pitch   = 40.0,  0.0,  3.0, 0.05
    PitchVy = 40.0,  0.0, 25.0, 0.05
    Yaw     = 10.0,  0.0,  3.0, 0.05
    Speed   = 20.0, 50.0, 15.0, 0.2
[end]
[adapt_pid_2]
    CAS     = 450.0
    Roll    = 14.0,  0.0,  2.8, 0.05
    Pitch   = 25.0,  0.0,  2.0, 0.05
    PitchVy = 10.0,  0.0,  6.0, 0.02
    Yaw     =  7.0,  0.0,  0.2, 0.05
    Speed   = 20.0, 50.0, 15.0, 0.2
[end]
[pid_taxiing]
    Roll    = 20.0,  0.0,  0.0, 0.03
    Pitch   =  4.0,  0.0,  0.0, 0.05
    Yaw     = 10.0,  0.0,  0.0, 0.03
    Speed   = 40.0, 20.0,  0.3, 0.2
    WheelBrakes = 2.0, 0.0, 0.0
[end]