Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Landing Distances</title>
- <meta charset="utf-8"/>
- <link rel="shortcut icon" type="image/x-icon" href="land.ico" />
- <script>
- // A319 QRH INFLIGHT PERFORMANCE LANDING DISTANCE DATA (NO FAILURES)
- var basic_dist = new Array();
- basic_dist[0]=1020; // Dry Full
- basic_dist[1]=1270;
- basic_dist[2]=1800;
- basic_dist[3]=1100; // Dry Conf 3
- basic_dist[4]=1370;
- basic_dist[5]=1970;
- basic_dist[6]=1320; // Good Full
- basic_dist[7]=1360;
- basic_dist[8]=1800;
- basic_dist[9]=1480; // Good Conf 3
- basic_dist[10]=1520;
- basic_dist[11]=1970;
- basic_dist[12]=1580; // Good to Medium Full
- basic_dist[13]=1610;
- basic_dist[14]=1810;
- basic_dist[15]=1740; // Good to Medium Conf 3
- basic_dist[16]=1770;
- basic_dist[17]=1990;
- basic_dist[18]=1760; // Medium Full
- basic_dist[19]=1790;
- basic_dist[20]=1910;
- basic_dist[21]=1960; // Medium Conf 3
- basic_dist[22]=1990;
- basic_dist[23]=2110;
- basic_dist[24]=1960; // Medium to Poor Full
- basic_dist[25]=1970;
- basic_dist[26]=2000;
- basic_dist[27]=2290; // Medium to Poor Conf 3
- basic_dist[28]=2290;
- basic_dist[29]=2340;
- basic_dist[30]=3230; // Poor Full
- basic_dist[31]=3240;
- basic_dist[32]=3260;
- basic_dist[33]=3760; // Poor Conf 3
- basic_dist[34]=3780;
- basic_dist[35]=3810;
- var weight_below = new Array();
- weight_below[0]=-10; // Dry Full
- weight_below[1]=-10;
- weight_below[2]=-10;
- weight_below[3]=-10; // Dry Conf 3
- weight_below[4]=-10;
- weight_below[5]=-20;
- weight_below[6]=-10; // Good Full
- weight_below[7]=-10;
- weight_below[8]=-10;
- weight_below[9]=-20; // Good Conf 3
- weight_below[10]=-20;
- weight_below[11]=-20;
- weight_below[12]=-10; // Good to Medium Full
- weight_below[13]=-10;
- weight_below[14]=-10;
- weight_below[15]=-20; // Good to Medium Conf 3
- weight_below[16]=-20;
- weight_below[17]=-20;
- weight_below[18]=-10; // Medium Full
- weight_below[19]=-10;
- weight_below[20]=-10;
- weight_below[21]=-20; // Medium Conf 3
- weight_below[22]=-20;
- weight_below[23]=-20;
- weight_below[24]=-20; // Medium to Poor Full
- weight_below[25]=-20;
- weight_below[26]=-20;
- weight_below[27]=-30; // Medium to Poor Conf 3
- weight_below[28]=-30;
- weight_below[29]=-30;
- weight_below[30]=-20; // Poor Full
- weight_below[31]=-20;
- weight_below[32]=-20;
- weight_below[33]=-30; // Poor Conf 3
- weight_below[34]=-30;
- weight_below[35]=-30;
- var weight_above = new Array();
- weight_above[0]=40; // Dry Full
- weight_above[1]=30;
- weight_above[2]=50;
- weight_above[3]=50; // Dry Conf 3
- weight_above[4]=40;
- weight_above[5]=50;
- weight_above[6]=50; // Good Full
- weight_above[7]=50;
- weight_above[8]=50;
- weight_above[9]=50; // Good Conf 3
- weight_above[10]=50;
- weight_above[11]=50;
- weight_above[12]=40; // Good to Medium Full
- weight_above[13]=40;
- weight_above[14]=50;
- weight_above[15]=40; // Good to Medium Conf 3
- weight_above[16]=40;
- weight_above[17]=50;
- weight_above[18]=40; // Medium Full
- weight_above[19]=40;
- weight_above[20]=50;
- weight_above[21]=50; // Medium Conf 3
- weight_above[22]=40;
- weight_above[23]=50;
- weight_above[24]=70; // Medium to Poor Full
- weight_above[25]=70;
- weight_above[26]=70;
- weight_above[27]=80; // Medium to Poor Conf 3
- weight_above[28]=80;
- weight_above[29]=80;
- weight_above[30]=70; // Poor Full
- weight_above[31]=70;
- weight_above[32]=70;
- weight_above[33]=80; // Poor Conf 3
- weight_above[34]=80;
- weight_above[35]=80;
- var per_five_kt = new Array();
- per_five_kt[0]=70; // Dry Full
- per_five_kt[1]=90;
- per_five_kt[2]=130;
- per_five_kt[3]=70; // Dry Conf 3
- per_five_kt[4]=100;
- per_five_kt[5]=140;
- per_five_kt[6]=110; // Good Full
- per_five_kt[7]=110;
- per_five_kt[8]=130;
- per_five_kt[9]=120; // Good Conf 3
- per_five_kt[10]=120;
- per_five_kt[11]=120;
- per_five_kt[12]=90; // Good to Medium Full
- per_five_kt[13]=90;
- per_five_kt[14]=140;
- per_five_kt[15]=100; // Good to Medium Conf 3
- per_five_kt[16]=100;
- per_five_kt[17]=140;
- per_five_kt[18]=110; // Medium Full
- per_five_kt[19]=100;
- per_five_kt[20]=130;
- per_five_kt[21]=110; // Medium Conf 3
- per_five_kt[22]=110;
- per_five_kt[23]=140;
- per_five_kt[24]=160; // Medium to Poor Full
- per_five_kt[25]=150;
- per_five_kt[26]=160;
- per_five_kt[27]=180; // Medium to Poor Conf 3
- per_five_kt[28]=200;
- per_five_kt[29]=180;
- per_five_kt[30]=140; // Poor Full
- per_five_kt[31]=140;
- per_five_kt[32]=150;
- per_five_kt[33]=170; // Poor Conf 3
- per_five_kt[34]=160;
- per_five_kt[35]=170;
- var per_thousand = new Array();
- per_thousand[0]=30; // Dry Full
- per_thousand[1]=40;
- per_thousand[2]=70;
- per_thousand[3]=40; // Dry Conf 3
- per_thousand[4]=50;
- per_thousand[5]=70;
- per_thousand[6]=60; // Good Full
- per_thousand[7]=60;
- per_thousand[8]=70;
- per_thousand[9]=70; // Good Conf 3
- per_thousand[10]=70;
- per_thousand[11]=70;
- per_thousand[12]=60; // Good to Medium Full
- per_thousand[13]=60;
- per_thousand[14]=70;
- per_thousand[15]=60; // Good to Medium Conf 3
- per_thousand[16]=60;
- per_thousand[17]=70;
- per_thousand[18]=60; // Medium Full
- per_thousand[19]=70;
- per_thousand[20]=70;
- per_thousand[21]=70; // Medium Conf 3
- per_thousand[22]=70;
- per_thousand[23]=80;
- per_thousand[24]=100; // Medium to Poor Full
- per_thousand[25]=110;
- per_thousand[26]=110;
- per_thousand[27]=130; // Medium to Poor Conf 3
- per_thousand[28]=130;
- per_thousand[29]=130;
- per_thousand[30]=120; // Poor Full
- per_thousand[31]=120;
- per_thousand[32]=120;
- per_thousand[33]=140; // Poor Conf 3
- per_thousand[34]=140;
- per_thousand[35]=140;
- var per_tw_five = new Array();
- per_tw_five[0]=110; // Dry Full
- per_tw_five[1]=130;
- per_tw_five[2]=200;
- per_tw_five[3]=120; // Dry Conf 3
- per_tw_five[4]=130;
- per_tw_five[5]=200;
- per_tw_five[6]=200; // Good Full
- per_tw_five[7]=210;
- per_tw_five[8]=200;
- per_tw_five[9]=230; // Good Conf 3
- per_tw_five[10]=230;
- per_tw_five[11]=200;
- per_tw_five[12]=190; // Good to Medium Full
- per_tw_five[13]=200;
- per_tw_five[14]=210;
- per_tw_five[15]=200; // Good to Medium Conf 3
- per_tw_five[16]=200;
- per_tw_five[17]=210;
- per_tw_five[18]=220; // Medium Full
- per_tw_five[19]=230;
- per_tw_five[20]=240;
- per_tw_five[21]=240; // Medium Conf 3
- per_tw_five[22]=240;
- per_tw_five[23]=240;
- per_tw_five[24]=360; // Medium to Poor Full
- per_tw_five[25]=360;
- per_tw_five[26]=370;
- per_tw_five[27]=410; // Medium to Poor Conf 3
- per_tw_five[28]=400;
- per_tw_five[29]=420;
- per_tw_five[30]=570; // Poor Full
- per_tw_five[31]=570;
- per_tw_five[32]=570;
- per_tw_five[33]=600; // Poor Conf 3
- per_tw_five[34]=610;
- per_tw_five[35]=610;
- var plus_ten_isa = new Array();
- plus_ten_isa[0]=40; // Dry Full
- plus_ten_isa[1]=40;
- plus_ten_isa[2]=60;
- plus_ten_isa[3]=40; // Dry Conf 3
- plus_ten_isa[4]=50;
- plus_ten_isa[5]=70;
- plus_ten_isa[6]=60; // Good Full
- plus_ten_isa[7]=50;
- plus_ten_isa[8]=60;
- plus_ten_isa[9]=60; // Good Conf 3
- plus_ten_isa[10]=60;
- plus_ten_isa[11]=70;
- plus_ten_isa[12]=50; // Good to Medium Full
- plus_ten_isa[13]=50;
- plus_ten_isa[14]=60;
- plus_ten_isa[15]=60; // Good to Medium Conf 3
- plus_ten_isa[16]=60;
- plus_ten_isa[17]=70;
- plus_ten_isa[18]=70; // Medium Full
- plus_ten_isa[19]=60;
- plus_ten_isa[20]=70;
- plus_ten_isa[21]=70; // Medium Conf 3
- plus_ten_isa[22]=70;
- plus_ten_isa[23]=70;
- plus_ten_isa[24]=110; // Medium to Poor Full
- plus_ten_isa[25]=100;
- plus_ten_isa[26]=90;
- plus_ten_isa[27]=130; // Medium to Poor Conf 3
- plus_ten_isa[28]=140;
- plus_ten_isa[29]=120;
- plus_ten_isa[30]=150; // Poor Full
- plus_ten_isa[31]=150;
- plus_ten_isa[32]=150;
- plus_ten_isa[33]=180; // Poor Conf 3
- plus_ten_isa[34]=180;
- plus_ten_isa[35]=180;
- var down_slope_one = new Array();
- down_slope_one[0]=20; // Dry Full
- down_slope_one[1]=10;
- down_slope_one[2]=30;
- down_slope_one[3]=20; // Dry Conf 3
- down_slope_one[4]=10;
- down_slope_one[5]=30;
- down_slope_one[6]=50; // Good Full
- down_slope_one[7]=50;
- down_slope_one[8]=30;
- down_slope_one[9]=60; // Good Conf 3
- down_slope_one[10]=60;
- down_slope_one[11]=30;
- down_slope_one[12]=80; // Good to Medium Full
- down_slope_one[13]=80;
- down_slope_one[14]=60;
- down_slope_one[15]=90; // Good to Medium Conf 3
- down_slope_one[16]=90;
- down_slope_one[17]=60;
- down_slope_one[18]=110; // Medium Full
- down_slope_one[19]=110;
- down_slope_one[20]=100;
- down_slope_one[21]=120; // Medium Conf 3
- down_slope_one[22]=130;
- down_slope_one[23]=110;
- down_slope_one[24]=150; // Medium to Poor Full
- down_slope_one[25]=160;
- down_slope_one[26]=170;
- down_slope_one[27]=200; // Medium to Poor Conf 3
- down_slope_one[28]=210;
- down_slope_one[29]=220;
- down_slope_one[30]=950; // Poor Full
- down_slope_one[31]=950;
- down_slope_one[32]=950;
- down_slope_one[33]=1170; // Poor Conf 3
- down_slope_one[34]=1180;
- down_slope_one[35]=1180;
- var full_revs = new Array();
- full_revs[0]=-10; // Dry Full
- full_revs[1]=0;
- full_revs[2]=-10;
- full_revs[3]=-20; // Dry Conf 3
- full_revs[4]=0;
- full_revs[5]=-10;
- full_revs[6]=-40; // Good Full
- full_revs[7]=-30;
- full_revs[8]=-10;
- full_revs[9]=-50; // Good Conf 3
- full_revs[10]=-40;
- full_revs[11]=-10;
- full_revs[12]=-70; // Good to Medium Full
- full_revs[13]=-80;
- full_revs[14]=-10;
- full_revs[15]=-90; // Good to Medium Conf 3
- full_revs[16]=-100;
- full_revs[17]=-20;
- full_revs[18]=-100; // Medium Full
- full_revs[19]=-100;
- full_revs[20]=-50;
- full_revs[21]=-110; // Medium Conf 3
- full_revs[22]=-130;
- full_revs[23]=-70;
- full_revs[24]=-110; // Medium to Poor Full
- full_revs[25]=-110;
- full_revs[26]=-50;
- full_revs[27]=-130; // Medium to Poor Conf 3
- full_revs[28]=-140;
- full_revs[29]=-100;
- full_revs[30]=-320; // Poor Full
- full_revs[31]=-330;
- full_revs[32]=-330;
- full_revs[33]=-430; // Poor Conf 3
- full_revs[34]=-450;
- full_revs[35]=-450;
- var overweight = new Array();
- overweight[0]=420; // Dry Full
- overweight[1]=530; // Dry Conf 3
- overweight[2]=360; // Good Full
- overweight[3]=450; // Good Conf 3
- overweight[4]=380; // Good to Medium Full
- overweight[5]=480; // Good to Medium Conf 3
- overweight[6]=360; // Medium Full
- overweight[7]=460; // Medium Conf 3
- overweight[8]=310; // Medium to Poor Full
- overweight[9]=390; // Medium to Poor Conf 3
- overweight[10]=310; // Poor Full
- overweight[11]=380; // Poor Conf 3
- var autoland = new Array();
- autoland[0]=170; // Dry Full
- autoland[1]=120; // Dry Conf 3
- autoland[2]=220; // Good Full
- autoland[3]=180; // Good Conf 3
- autoland[4]=210; // Good to Medium Full
- autoland[5]=180; // Good to Medium Conf 3
- autoland[6]=220; // Medium Full
- autoland[7]=190; // Medium Conf 3
- autoland[8]=280; // Medium to Poor Full
- autoland[9]=300; // Medium to Poor Conf 3
- autoland[10]=270; // Poor Full
- autoland[11]=280; // Poor Conf 3
- // PRESET AIRPORT DATA
- var preset_elevation = new Array();
- preset_elevation[0]=832; // Coca 16
- preset_elevation[1]=834; // Coca 34
- preset_elevation[2]=8306; // Cuenca 05
- preset_elevation[3]=8255; // Cuenca 23
- preset_elevation[4]=16; // Guayaquil 03
- preset_elevation[5]=13; // Guayaquil 21
- preset_elevation[6]=144; // Baltra 14
- preset_elevation[7]=207; // Baltra 32
- preset_elevation[8]=36; // Manta 06
- preset_elevation[9]=49; // Manta 24
- preset_elevation[10]=7776; // Quito 18
- preset_elevation[11]=7910; // Quito 36
- preset_elevation[12]=31; // San Cristobal 17
- preset_elevation[13]=53; // San Cristobal 35
- preset_elevation[14]=8352; // Bogota 13L
- preset_elevation[15]=8348; // Bogota 13R
- preset_elevation[16]=8351; // Bogota 31L
- preset_elevation[17]=8357; // Bogota 31R
- preset_elevation[18]=3152; // Cali 01
- preset_elevation[19]=3162; // Cali 19
- preset_elevation[20]=7025; // Rio Negro 18
- preset_elevation[21]=6967; // Rio Negro 36
- preset_elevation[22]=46; // Lima 15
- preset_elevation[23]=113; // Lima 33
- var preset_heading = new Array();
- preset_heading[0]=157; // Coca 16
- preset_heading[1]=337; // Coca 34
- preset_heading[2]=54; // Cuenca 05
- preset_heading[3]=234; // Cuenca 23
- preset_heading[4]=30; // Guayaquil 03
- preset_heading[5]=210; // Guayaquil 21
- preset_heading[6]=140; // Baltra 14
- preset_heading[7]=320; // Baltra 32
- preset_heading[8]=56; // Manta 06
- preset_heading[9]=236; // Manta 24
- preset_heading[10]=180; // Quito 18
- preset_heading[11]=360; // Quito 36
- preset_heading[12]=165; // San Cristobal 17
- preset_heading[13]=345; // San Cristobal 35
- preset_heading[14]=134; // Bogota 13L
- preset_heading[15]=134; // Bogota 13R
- preset_heading[16]=314; // Bogota 31L
- preset_heading[17]=314; // Bogota 31R
- preset_heading[18]=14; // Cali 01
- preset_heading[19]=194; // Cali 19
- preset_heading[20]=184; // Rio Negro 18
- preset_heading[21]=4; // Rio Negro 36
- preset_heading[22]=153; // Lima 15
- preset_heading[23]=333; // Lima 33
- var preset_length = new Array();
- preset_length[0]=2300; // Coca 16
- preset_length[1]=2300; // Coca 34
- preset_length[2]=1900; // Cuenca 05
- preset_length[3]=1900; // Cuenca 23
- preset_length[4]=2684; // Guayaquil 03
- preset_length[5]=2684; // Guayaquil 21 (2777 with stopway)
- preset_length[6]=2400; // Baltra 14
- preset_length[7]=2400; // Baltra 32
- preset_length[8]=2852; // Manta 06
- preset_length[9]=2852; // Manta 24
- preset_length[10]=4098; // Quito 18
- preset_length[11]=4098; // Quito 36
- preset_length[12]=1840; // San Cristobal 17
- preset_length[13]=1840; // San Cristobal 35
- preset_length[14]=3800; // Bogota 13L
- preset_length[15]=3800; // Bogota 13R
- preset_length[16]=3800; // Bogota 31L
- preset_length[17]=3800; // Bogota 31R
- preset_length[18]=3000; // Cali 01
- preset_length[19]=3000; // Cali 19
- preset_length[20]=3500; // Rio Negro 18
- preset_length[21]=3500; // Rio Negro 36
- preset_length[22]=3507; // Lima 15
- preset_length[23]=3507; // Lima 33
- var preset_slope = new Array();
- preset_slope[0]=0.03; // Coca 16
- preset_slope[1]=-0.03; // Coca 34
- preset_slope[2]=-0.82; // Cuenca 05
- preset_slope[3]=0.82; // Cuenca 23
- preset_slope[4]=-0.03; // Guayaquil 03
- preset_slope[5]=0.03; // Guayaquil 21
- preset_slope[6]=0.8; // Baltra 14
- preset_slope[7]=-0.8; // Baltra 32
- preset_slope[8]=0.14; // Manta 06
- preset_slope[9]=-0.14; // Manta 24
- preset_slope[10]=1.0; // Quito 18
- preset_slope[11]=-1.0; // Quito 36
- preset_slope[12]=0.36; // San Cristobal 17
- preset_slope[13]=-0.36; // San Cristobal 35
- preset_slope[14]=0.04; // Bogota 13L
- preset_slope[15]=0.02; // Bogota 13R
- preset_slope[16]=-0.02; // Bogota 31L
- preset_slope[17]=-0.04; // Bogota 31R
- preset_slope[18]=0.1; // Cali 01
- preset_slope[19]=-0.1; // Cali 19
- preset_slope[20]=-0.5; // Rio Negro 18
- preset_slope[21]=0.5; // Rio Negro 36
- preset_slope[22]=0.58; // Lima 15
- preset_slope[23]=-0.58; // Lima 33
- //VLS for FULL
- var vls = new Array();
- vls_full[0]=111;
- vls_full[1]=113;
- vls_full[2]=116;
- vls_full[3]=121;
- vls_full[4]=125;
- vls_full[5]=129;
- vls_full[6]=133;
- vls_full[7]=137;
- vls_full[8]=142;
- //VLS for conf 3
- var vls_conf3 = new Array();
- vls_conf3[0]=113;
- vls_conf3[1]=117;
- vls_conf3[2]=122;
- vls_conf3[3]=127;
- vls_conf3[4]=131;
- vls_conf3[5]=136;
- vls_conf3[6]=140;
- vls_conf3[7]=144;
- vls_conf3[8]=149;
- var key_weight = new Array();
- key_weight[0]=44;
- key_weight[1]=47;
- key_weight[2]=51;
- key_weight[3]=55;
- key_weight[4]=59;
- key_weight[5]=63;
- key_weight[6]=67;
- key_weight[7]=71;
- key_weight[8]=76;
- //Runway data variables
- var runway_elevation = 0;
- var runway_heading = 0;
- var runway_length = 0;
- var runway_slope = 0.0;
- // Configuration and conditions variables
- var isa_dev = 0;
- // function to toggle preselected or custom airport runway entry
- function disable_runway_boxes()
- {
- if(document.configuration.preselected.checked)
- {
- document.configuration.airport.disabled=false;
- document.configuration.elev.disabled=true;
- document.configuration.hdg.disabled=true;
- document.configuration.length.disabled=true;
- document.configuration.slope.disabled=true;
- }
- else
- {
- document.configuration.airport.disabled=true;
- document.configuration.elev.disabled=false;
- document.configuration.hdg.disabled=false;
- document.configuration.length.disabled=false;
- document.configuration.slope.disabled=false;
- }
- }
- // function to select a runway
- function select_runway()
- {
- var len = document.configuration.airport.length;
- var selected_runway = "";
- var i = 0;
- var index_check = -1;
- for(i=0;i<len;i++)
- {
- if(document.configuration.airport[i].selected)
- {
- index_check = i;
- selected_runway = document.configuration.airport[i].value;
- break;
- }
- }
- runway_elevation = preset_elevation[index_check];
- runway_heading = preset_heading[index_check];
- runway_length = preset_length[index_check];
- runway_slope = preset_slope[index_check];
- document.configuration.elev.value = runway_elevation;
- document.configuration.hdg.value = runway_heading;
- document.configuration.length.value = runway_length;
- document.configuration.slope.value = runway_slope;
- }
- function deg_to_rad(x)
- {
- return (x * Math.PI) / 180;
- }
- // Select basic runway distance
- function basic_runway_distance()
- {
- var base_land_distance = 0;
- var i = 0;
- var selected_index = 0;
- var len = document.configuration.runway_conds.length;
- for(i=0;i<len;i++)
- {
- if(document.configuration.runway_conds[i].selected)
- {
- selected_cond_index = i;
- break;
- }
- }
- // correct for flaps
- var flaps_conf3 = 0;
- if(document.configuration.flaps.checked)
- {
- flaps_conf3 = 3;
- }
- else
- {
- flaps_conf3 = 0;
- }
- // correct for brakes
- var brakes_setting = 0;
- if(document.configuration.brakes[0].checked)
- {
- brakes_setting = 0;
- }
- else if(document.configuration.brakes[1].checked)
- {
- brakes_setting = 1;
- }
- else
- {
- brakes_setting = 2;
- }
- var abrev_tables_index = (selected_cond_index * 2) + flaps_conf3;
- var tables_index = (selected_cond_index * 6) + flaps_conf3 + brakes_setting;
- base_land_distance = basic_dist[tables_index];
- // document.getElementById("test_box").value = base_land_distance;
- // correct for reversers
- var reverser_effect = 0;
- if(document.configuration.revs.checked)
- {
- reverser_effect = full_revs[tables_index] * 2;
- }
- else
- {
- reverser_effect = 0;
- }
- // correct for altitude
- var altitude_effect = 0;
- var airport_elevation = document.configuration.elev.value;
- if(airport_elevation > 0 || airport_elevation != "")
- {
- altitude_effect = Math.round((airport_elevation / 1000) * per_thousand[tables_index]);
- }
- else
- {
- altitude_effect = 0;
- }
- // correct for slope
- var slope_effect = 0;
- var runway_slope = document.configuration.slope.value;
- if(runway_slope < 0.0)
- {
- slope_effect = Math.round((runway_slope * -1) * down_slope_one[tables_index]);
- }
- else
- {
- slope_effect = 0;
- }
- // correct for weight
- var weight_effect = 0;
- var aircraft_weight = document.configuration.lw.value;
- if(aircraft_weight > 63.0)
- {
- weight_effect = Math.round((aircraft_weight - 63.0) * weight_above[tables_index]);
- }
- else if(aircraft_weight < 63.0)
- {
- weight_effect = Math.round((63.0 - aircraft_weight) * weight_below[tables_index]);
- }
- else if(aircraft_weight == 63.0)
- {
- weight_effect = 0;
- }
- // overweight landing procedure
- var over_mlw_effect = 0;
- if(aircraft_weight > 61.0)
- {
- over_mlw_effect = overweight[abrev_tables_index];
- }
- else
- {
- over_mlw_effect = 0;
- }
- // autoland
- var autoland_effect = 0;
- if(document.configuration.autoland.checked)
- {
- autoland_effect = autoland[abrev_tables_index];
- }
- else
- {
- autoland_effect = 0;
- }
- // correct for isa deviation
- var oat = document.configuration.oat.value;
- var isa_dev = oat - (15 - ((airport_elevation / 1000) * 2));
- var temp_effect = 0;
- if(isa_dev > 0)
- {
- temp_effect = Math.round((isa_dev / 10.0) * plus_ten_isa[tables_index]);
- }
- else
- {
- temp_effect = 0;
- }
- // wind corrections
- var wind_dir = document.configuration.wind_dir.value;
- var wind_vel = document.configuration.wind_vel.value;
- var rwy_hdg = document.configuration.hdg.value;
- if(wind_dir > 360)
- {
- while(wind_dir > 360)
- {
- wind_dir -= 360;
- }
- }
- if(wind_dir <= 0)
- {
- while(wind_dir <= 0)
- {
- wind_dir += 360;
- }
- }
- if(rwy_hdg > 360)
- {
- while(rwy_hdg > 360)
- {
- rwy_hdg -= 360;
- }
- }
- if(rwy_hdg <= 0)
- {
- while(rwy_hdg <= 0)
- {
- rwy_hdg += 360;
- }
- }
- var relative_wind_angle = wind_dir - rwy_hdg;
- if(relative_wind_angle > 180)
- {
- relative_wind_angle -= 360;
- }
- if(relative_wind_angle < -180)
- {
- relative_wind_angle -= 360;
- }
- var relative_angle_rads = deg_to_rad(relative_wind_angle);
- var hw_tw_component = Math.cos(relative_angle_rads) * wind_vel;
- var five_kt_wind_correction = per_five_kt[tables_index];
- var wind_correction = 0;
- if(hw_tw_component < 0)
- {
- wind_correction = Math.round(five_kt_wind_correction + (hw_tw_component * (per_tw_five[tables_index] / 5.0)));
- }
- else if(hw_tw_component < 15 && hw_tw_component >= 0)
- {
- wind_correction = five_kt_wind_correction;
- }
- else
- {
- wind_correction = 0;
- }
- document.getElementById("test_box").value = base_land_distance + Math.round(five_kt_wind_correction) + reverser_effect + altitude_effect + slope_effect + weight_effect + temp_effect + over_mlw_effect + autoland_effect;
- //document.getElementById("test_box_2").value = hw_tw_component;
- vap();
- //document.getElementById("test_box_2").value = "Hello";
- }
- function vap()
- {
- var aircraft_weight = document.configuration.lw.value;
- var len = key_weight.length;
- //var i = 0;
- //for(i=0;i<
- document.getElementById("test_box_2").value = "Hello!";//len;//aircraft_weight;
- }
- </script>
- <noscript>
- <p>JavaScript is not enabled.</p>
- </noscript>
- </head>
- <body bgcolor="lightblue">
- <h1><font color="navy">A319 Landing Distances</font></h1>
- <hr>
- <div id="confs">
- <form name="configuration">
- <h2><font color="indigo">Select Configuration and Conditions</font></h2>
- <p>
- <input type="checkbox" name="flaps" value="flaps3"> Flaps 3 
- <input type="checkbox" name="revs" value="fullrevs"> Full reversers  
- <b>Brakes:</b>
- <input type="radio" name="brakes" value="manual" checked>Manual
- <input type="radio" name="brakes" value="medium">Medium
- <input type="radio" name="brakes" value="low">Low  
- <input type="text" name="lw" size="8"> Landing Weight (Tonnes)
- </p>
- <p>
- <select name="runway_conds">
- <option value="dry">Dry</option>
- <option value="good">Good</option>
- <option value="good_medium">Good to Medium</option>
- <option value="medium">Medium</option>
- <option value="medium_poor">Medium to Poor</option>
- <option value="poor">Poor</option>
- </select> Runway conditions 
- <input type="text" name="wind_dir" size="8"> Wind direction 
- <input type="text" name="wind_vel" size="8"> Wind intensity kt 
- <input type="text" name="oat" size="8"> OAT (C)
- </p>
- <p>
- <input type="Checkbox" name="autoland" value="auto"> <b>Autoland</b>
- </p></br><hr>
- <h2><font color="indigo">Set Airport</font></h2>
- <h3><font color="darkslateblue">Preselected Runway</font></h3>
- <p>
- <input type="checkbox" name="preselected" value="preselect" onclick="disable_runway_boxes()"> <b>Preselect airport runway from list:</b> 
- <select name="airport" disabled="true" onchange="select_runway()"<!--size="3" width="190" style="width: 100px"-->>
- <option value="Coca_16">SECO 16</option>
- <option value="Coca_34">SECO 34</option>
- <option value="Cuenca_05">SECU 05</option>
- <option value="Cuenca_23">SECU 23</option>
- <option value="Guayaquil_03">SEGU 03</option>
- <option value="Guayaquil_21">SEGU 21</option>
- <option value="Baltra_14">SEGS 14</option>
- <option value="Baltra_32">SEGS 32</option>
- <option value="Manta_06">SEMT 06</option>
- <option value="Manta_24">SEMT 24</option>
- <option value="Quito_18">SEQM 18</option>
- <option value="Quito_36">SEQM 36</option>
- <option value="San_Cristobal_17">SEST 17</option>
- <option value="San_Cristobal_35">SEST 35</option>
- <option value="Bogota_13L">SKBO 13L</option>
- <option value="Bogota_13R">SKBO 13R</option>
- <option value="Bogota_31L">SKBO 31L</option>
- <option value="Bogota_31R">SKBO 31R</option>
- <option value="Cali_01">SKCL 01</option>
- <option value="Cali_19">SKCL 19</option>
- <option value="Rio_Negro_18">SKRG 18</option>
- <option value="Rio_Negro_36">SKRG 36</option>
- <option value="Lima_15">SPIM 15</option>
- <option value="Lima_33">SPIM 33</option>
- </select>
- </p>
- <h3><font color="darkslateblue">Custom Airport</font></h3>
- <p>
- <input type="text" id="elev_id" name="elev" size="8"> Runway elevation (ft) 
- <input type="text" id="hdg_id" name="hdg" size="8"> Runway heading 
- <input type="text" id="length_id" name="length" size="8"> Runway length (m) 
- <input type="text" id="slope_id" name="slope" size="8"> Slope (%)
- </p></br><hr>
- </form>
- </div>
- <div id="results">
- <h2><font color="indigo">Results of Calculation</font></h2>
- <p>
- <input type="button" value="Calculate Distance" onclick="basic_runway_distance()"/>
- </p>
- <p>
- <b>Required Landing Distance:</b>
- <input type="text" id="result_box" readonly="true" size="12"/> Meters 
- <input type="text" id="test_box" size="12"/> TESTBOX  
- <input type="text" id="test_box_2" size="12"/> TESTBOX
- </p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement