Jump to content

PIREP Aircraft


Aaron

Recommended Posts

Currently the aircraft are determined by their reg. when PIREPs are submitted. I want to completely get rid of regs. This is how I think it works so far:

$pirepdata['aircraft'] = registration#

then it calls function-> Get Aircraft by Reg

I'm assuming that $pirepdata['aircraft'] is = to registration, never checked, how do I change it so it equals the aircraft name? Then I could make it call a separate function "get aricraft by name".

Link to comment
Share on other sites

  • 2 weeks later...

Hi. I worked around this by setting up my aircraft registrations to be mnemonic to their ICAO codes.

For instance, an A320 on my airline is HK0320, B738 is HK0738, etc.

There is nothing to stop you from using the ICAO codes directly as aircraft registrations as far as I know.

Of course you still have the problem of having to set it up in advance...

On the other hand, you can do this without having to dig into the code (and possibly introduce subtle new undesirable behaviors...)

TAV0001.png

Link to comment
Share on other sites

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...