Jump to content

bass

Members
  • Content Count

    238
  • Joined

  • Last visited

Community Reputation

26 Excellent

About bass

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

3404 profile views
  1. Hello, for my site I made a check whether the pilot arrived at the right airport or not. The script is installed in pirep_viewreport.tpl This script I found on the Internet and applied it to the site. In fact it is a distance rival. 1) You set an acceptable landing distance from the point (Airport) to an example of 35 km. 2) The data is compared, Example: If the pilot landed the aircraft no further than 35 km from the point of coordinates of your arrival airport, the Value is ALL GOOD, if this distance is more than permissible (in my case 35 km), So the pilot arrived at some other airport and issued a warning !. This photo shows that I should fly to UNNT, but I made a circle and returned to the airport of departure. On this photo you can see a warning !!! "You did not land the plane at the designated airport!" This is the conclusion of an example when everything is fine. The pilot arrived at the right airport. This is the code itself. <!--Скрипт сравнения расстояния--> <?php // Радиус земли define('EARTH_RADIUS', 6372795); function calculateTheDistance ($φA, $λA, $φB, $λB) { // перевести координаты в радианы $lat1 = $φA * M_PI / 180; $lat2 = $φB * M_PI / 180; $long1 = $λA * M_PI / 180; $long2 = $λB * M_PI / 180; // косинусы и синусы широт и разницы долгот $cl1 = cos($lat1); $cl2 = cos($lat2); $sl1 = sin($lat1); $sl2 = sin($lat2); $delta = $long2 - $long1; $cdelta = cos($delta); $sdelta = sin($delta); // вычисления длины большого круга $y = sqrt(pow($cl2 * $sdelta, 2) + pow($cl1 * $sl2 - $sl1 * $cl2 * $cdelta, 2)); $x = $sl1 * $sl2 + $cl1 * $cl2 * $cdelta; // $ad = atan2($y, $x); $dist = $ad * EARTH_RADIUS; return $dist; } $query = "SELECT * FROM phpvms_airports WHERE icao='$pirep->arricao'"; $Result = DB::get_results($query); foreach($Result as $a) { $lat1 = $a->lat; $long1 = $a->lng; } $lat2 = round($latP, 4); //LAT точки приземления $long2 = round($lngP, 4); //LON точки прибытия ?> <br> <?php $dopustimaia = 35000; // Это число в метрах допустимых от точки (Аэропорта) $itogovaia = calculateTheDistance($lat1, $long1, $lat2, $long2); // Это должна быть переменная точки приземления if ($dopustimaia > $itogovaia) { echo '<div class="view-header"> <div class="header-icon"> <i class="pe page-header-icon pe-7s-map-marker"></i> </div> <div class="header-title"> <h3>Благодарность от администрации</h3> <small> Рейс окончен в назначенном аэропорту. </small> </div> </div>'; } else { echo '<div class="view-header"> <div class="header-icon"> <i class="pe page-header-icon pe-7s-speaker"></i> </div> <div class="header-title"> <h3>Предупреждение!</h3> <small> С вас будет взысконно -1000 миль и -10 часов налета. Вы посадили самолет не в назначенном аэропорту! </small> </div> </div>'; } ?>
  2. bass

    JS script Arrival departure board

    Yes, only here there is an article, how to draw any information with the API json http://aero-info.do.am/publ/vyvodim_dannye_iz_tablicy_v_vide_json/1-1-0-5
  3. Who needs a good plug-in to create an effect like on the scoreboard at the airport, you can download here. You can apply to any information. http://aero-info.do.am/load/shablony_html/komponenty/tekst_kak_na_tablo_aehroporta/15-1-0-5
  4. bass

    Dispatch Generate

    yes
  5. bass

    MilAcars

    I saw the Log in the report with your application. How is it different from the others? It makes no sense to install your agent. I'm looking for a software that transmits the Log high, visibility, wind, flaps, speed, steering, stalling, lights, weather conditions (rain, snow, storm), and so on, I have a script that calculates the errors and exposes the Rating for the flight and sweeps the data into the database. Below taking notes. For example (+5 for taking off in strong winds, -10 for not included lamp, -15 over the speed limit release flap )
  6. bass

    MilAcars

    Windows XP? not work?
  7. bass

    New Log/Acars Software APVacars

    Sometimes the message Cloud not get data
  8. bass

    New Log/Acars Software APVacars

    Yes, I made the flight booking. Loaded at the right airport, and put on the emergency brake, click on GET Flight, but nothing happens)
  9. bass

    New Log/Acars Software APVacars

    Can't run the program APVA Click on GET FLIGHT and nothing happens.
  10. bass

    New Log/Acars Software APVacars

    How to add LOG weather data, visibility, wind, release the flaps, landing gear and so on?
  11. bass

    New Log/Acars Software APVacars

    Aircraft is our of service- What does it mean? Always goes this error.
  12. bass

    Departure Board HTML CSS php

    Departure boards.New scoreboard built on a frame of HTML and CSS.Output <?php include('departure.tpl'); ?> in any part of your website. In this form you can display any table with your information.Who in flight (acars)Extreme flightBooked flightsand so on... Details here
  13. bass

    phpVMS REST API

    /action.php/pilots ??? It does not suit me(
  14. bass

    phpVMS REST API

    Reviewed a lot of information, but was not able to get this module to work(((Is there someone who have this module working?
  15. bass

    Identity card for polots

    Hey all, I made a small module that generates the Personal ID card of the pilot, and even generates the overall statistics of the company. All information is displayed on the foreground of any pictures JPGWho is interested in the module, write in PM) The module generates links that you can embed on sites, forums, blogs with information about the company or the personal card pilot. =) -------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------
×