Jump to content

Recommended Posts

  • Moderators
Posted

For example penalty the following:
-Overspeed (-5%)
-Exceded 250 kias below 10000 ft (-5%)
-exhausted fuel supply (-25%)
-landing at wrong airport (-30%)
-landing lights on above 10000 ft (-5%)
-landing lights off below 1000 ft (-5%)
-overspeed taxi (-5%)

  • Moderators
Posted
8 hours ago, bass said:

I have such code, which considers an overall assessment of the flight.

Speed exceeding
Speed below 10,000 FT
Landing lights
The rate of descent
The stall
Take-off and landing in complicated meteorological conditions
The angle at take-off
Crash
The impact of the nose landing gear
and so on...

Here is an example

2017-01-10_105035.jpg

All assessments are stored in the database and it shows the TOP pilot for the month.

2017-01-10_105750.jpg

Nice!!

Can you share the code :O?

  • Moderators
Posted
18 minutes ago, bass said:

$start = $pirep->log;

<!-- Огни, минус 5% -->
$string1 = strstr($start, 'Landing Lights OFF');
$string2 = substr($string1, 21, 6);
//echo $string2;
if($string2 >= '-10000'){

$lights = '5';	
	
echo "Landing lights are not turned off when you climb from 5000 ft. up to 10,000 ft.:  -5%";
}	

That's not a big sample code that simply displays a violation, but does not save.

Nice!

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...