// Based on Stemme motor glider aircraft.cfg
// by Al Kaiser
// and
// Duo Discus aircraft.cfg by Wolfgang Piper
// http://www.fsglider.de

[fltsim.0]
title=AI Vlecna
sim=Stemme_for_AI_glider
panel=
sound=
texture=
atc_id=OM-LLV
kb_reference=
kb_checklists=
description=Based on the Stemme Motor Glider.air_file, and where needed tuned for AI Gliders by Bert de Bruin
ui_manufacturer=AI
ui_type=Z-226
ui_variation=OM-LLV
visual_damage=1

[General]
performance=Span: 20 m\nEmpty Weight: 410 kg, Gross weight 700 kg\nMin. sink: 0.58 m/s \nL/D max: 45\nStall speed: 68 km/h\nV max: 250 km/h
atc_type=Z-226
atc_model=Zlin
Category=airplane

[electrical]
max_battery_voltage=24
avionics_bus=0, 0 , 0
avionics=0, 0 , 0
additional_system=0, 0 , 0
flap_motor=0, 0 , 0
gear_motor=0, 0 , 0


[WEIGHT_AND_BALANCE]
reference_datum_position=1.0,0,0
empty_weight_CG_position=-1.0,0,0

     
empty_weight=904.000000
empty_weight_roll_MOI=900.000000
empty_weight_pitch_MOI=700.000000
empty_weight_yaw_MOI=800.000000  
empty_weight_coupled_MOI=0.000000
max_gross_weight=1543.000000


[Reference Speeds]
flaps_up_stall_speed=35.000000
full_flaps_stall_speed=34.00000
cruise_speed=47
max_indicated_speed=250
max_mach=0.220020

[flight_tuning]
cruise_lift_scalar=1.0
parasite_drag_scalar=0.58
induced_drag_scalar=0.95
elevator_effectiveness=0.9
aileron_effectiveness=1.0
rudder_effectiveness=1.0
pitch_stability=1.2
roll_stability=1.0
yaw_stability=1.0
elevator_trim_effectiveness=1.2
aileron_trim_effectiveness=1.0
rudder_trim_effectiveness=1.0
torque_on_roll=2.0
p_factor_on_yaw=2.0


[airplane_geometry]
wing_area=180.000000
wing_span=60
wing_root_chord=3.8
wing_dihedral=3
wing_incidence=1.5
wing_twist=1
oswald_efficiency_factor=0.875082
wing_winglets_flag=1
wing_sweep=0.000000
wing_pos_apex_lon=0
wing_pos_apex_vert=0.000000
htail_area=4.5000000
htail_span=10
htail_pos_lon=-18.0
htail_pos_vert=4.700000
htail_incidence=1.0000000
htail_sweep=0.000000
vtail_area=15
vtail_span=3.5
vtail_sweep=0.000000
vtail_pos_lon=-18.0
vtail_pos_vert=3
elevator_area=5
aileron_area=11.900000
rudder_area=3
elevator_up_limit=27
elevator_down_limit=15
aileron_up_limit=17
aileron_down_limit=10
rudder_limit=23.491270
elevator_trim_limit=35
spoiler_limit=59.988681
spoilerons_available=0
aileron_to_spoileron_gain=0.000000
min_ailerons_for_spoilerons=0.000000
min_flaps_for_spoilerons=0.000000
auto_spoiler_available=0
spoiler_extension_time=0.500000
positive_g_limit_flaps_up=4.000000
positive_g_limit_flaps_down=2.000000
negative_g_limit_flaps_up=-1.500000
negative_g_limit_flaps_down=-1.500000


[contact_points]
static_pitch = 12.3
static_cg_height = 4.2
max_number_of_points = 14
point.0 = 1.000, -13.432, 0.000, -2.0, 1377.953, 0.000, 0.440, 45.600, 0.200, 2.500, 0.934, 3.500, 3.500, 0.000, 0.000, 0.000
point.1 = 1.000, 0.748, -2.900, -4.3, 1968.504, 1.000, 0.700, 0.000, 0.300, 2.500, 0.477, 4.700, 4.700, 2.000, 0.000, 0.000
point.2 = 1.000, 0.742, 2.862, -4.3, 1968.504, 2.000, 0.700, 0.000, 0.300, 2.500, 0.477, 5.200, 5.200, 3.000, 0.000, 0.000
point.3 = 2.000, -4.209, -17.010, -0.488, 2000.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 5.000, 0.000, 0.000
point.4 = 2.000, -1.427, -17.070, 0.000, 1500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 5.000, 0.000, 0.000
point.5 = 2.000, -1.426, 17.070, 0.000, 1500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 6.000, 0.000, 0.000
point.6 = 2.000, -4.154, 17.042, -0.489, 2000.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 6.000, 0.000, 0.000
point.7 = 2.000, -17.257, 0.000, 0.467, 1574.803, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 9.000, 0.000, 0.000
point.8 = 2.000, -1.137, 0.000, -2.131, 2000.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4.000, 0.000, 0.000
point.9 = 2.000, 2.752, 0.000, -2.192, 1500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4.000, 0.000, 0.000
point.10 = 2.000, -5.910, 0.000, -1.609, 2000.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4.000, 0.000, 0.000
point.11 = 2.000, -12.771, 0.000, -0.666, 1500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 9.000, 0.000, 0.000
point.12 = 2.000, 6.661, 0.000, -1.750, 1500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4.000, 0.000, 0.000
point.13 = 2.000, -14.393, 0.000, 4.834, 500.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 4.000, 0.000, 0.000
gear_system_type=0

[Views]
eyepoint=3.9,0, 0.92 //Front View

[effects]
dirt = fx_tchdwn_s, 1
touchdown = fx_tchdwn_s, 1

//---- parameters from Stemme motor glider, tweaked

[fuel]
LeftMain=-0.250000,-2.100000,2.500000,6.000000,0.000000
RightMain=-0.250000,2.100000,2.500000,6.000000,0.000000
fuel_type=1.000000
number_of_tank_selectors=1
electric_pump=1

[GeneralEngineData]
engine_type=0
Engine.0=6.000000,0.000000,0.000000
fuel_flow_scalar=1.000000
min_throttle_limit=0.000000

[piston_engine]
power_scalar=1.0                   //Piston power scalar
cylinder_displacement=100.300000
compression_ratio=6.000000
number_of_cylinders=2
max_rated_rpm=2700 
max_rated_hp=95			// was 115
fuel_metering_type=1
cooling_type=1
normalized_starter_torque=0.300000
turbocharged=0
max_design_mp=0.000000
min_design_mp=0.000000
critical_altitude=0.000000
emergency_boost_type=0
emergency_boost_mp_offset=0.000000
emergency_boost_gain_offset=0.000000
fuel_air_auto_mixture=0
auto_ignition=0
max_rpm_mechanical_efficiency_scalar=1.000000
idle_rpm_mechanical_efficiency_scalar=1.000000
max_rpm_friction_scalar=1.000000
idle_rpm_friction_scalar=1.000000

[propeller]
thrust_scalar=1.0   			// Propeller thrust scalar
propeller_type=0
propeller_diameter=5.433000
propeller_blades=2
propeller_moi=3.350000
beta_max=29.800000
beta_min=17.000000	
min_gov_rpm=700.000000
prop_tc=0.004000
gear_reduction_ratio=1.25		// was 1.0
fixed_pitch_beta=0.000000
low_speed_theory_limit=80.000000
prop_sync_available=0
prop_deice_available=0
prop_feathering_available=1
prop_auto_feathering_available=0
min_rpm_for_feather=0.000000
beta_feather=90.000000
power_absorbed_cf=0.000000
defeathering_accumulators_available=1
prop_reverse_available=0                
minimum_on_ground_beta=4		// was 0
minimum_reverse_beta=0.000000



[keyboard_response]
elevator=100.000000,180.000000
aileron=200.000000,1000.000000
rudder=200.000000,1000.000000

[autopilot]
autopilot_available=1
flight_director_available=0
default_vertical_speed=700.000000
autothrottle_available=0
pitch_takeoff_ga=8.000000
max_pitch=10.000000
max_pitch_acceleration=1.000000
max_pitch_velocity_lo_alt=2.000000
max_pitch_velocity_hi_alt=1.500000
max_pitch_velocity_lo_alt_breakpoint=20000.000000
max_pitch_velocity_hi_alt_breakpoint=28000.000000
max_bank=25.000000
max_bank_acceleration=1.800000
max_bank_velocity=3.000000
max_throttle_rate=0.100000
nav_proportional_control=9.000000
nav_integrator_control=0.250000
nav_derivative_control=0.000000
nav_integrator_boundary=2.500000
nav_derivative_boundary=0.000000
gs_proportional_control=9.520000
gs_integrator_control=0.260000
gs_derivative_control=0.000000
gs_integrator_boundary=0.700000
gs_derivative_boundary=0.000000
yaw_damper_gain=0.000000

[direction_indicators]
direction_indicator.0=1,0

[brakes]
differential_braking_scale = 1.0
toe_brakes_scale=0.75
parking_brake=1

[hydraulic_system]
normal_pressure=0.000000

[stall_warning]
type=0
stick_shaker=0

[attitude_indicators]
attitude_indicator.0=1

[turn_indicators]
turn_indicator.0=1,0

[gear_warning_system]
gear_warning_available=0
pct_throttle_limit=0.099976
flap_limit_power=15.996982
flap_limit_idle=0.000000

[flaps.0]       		//Trailing Edge Flaps
type=1          		// 1 - tail, 2 - lead
span-outboard=0.500   	
extending-time=2.000
system_type=0
flaps-position.0=0.000000,0.000000
flaps-position.1=39.992454,0.000000   
damaging-speed=100     
blowout-speed=110
[pitot_static]
pitot_heat=0.000000
[vacuum_system]
max_pressure=5.150000
vacuum_type=1
electric_backup_pressure=0.000000
engine_map=1,0,0,0
[pneumatic_system]
max_pressure=0.000000
bleed_air_scalar=1.000000
[deice_system]
structural_deice_type=0
