Aaron Posted April 27, 2012 Report Share Posted April 27, 2012 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". Quote Link to comment Share on other sites More sharing options...
tav0001 Posted May 8, 2012 Report Share Posted May 8, 2012 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...) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.