Jump to content

What min fields to send with updateFlightData


Rogerox

Recommended Posts

Hi,

I am programming my own ACARS Client and a new ACARS module on PHP too.

The FilePIREP works fine to me, but I am having trouble to find out what are the minimum fields to send when calling ACARSData::UpdateFlightData($pilotid, $fields);

When I begin logging the flight, still on the appron, for example, I am passing the following fields to an array:

$macars = array (

'flightnum'=>$datac[2],

'code'=>$datac[1],

'aircraft'=>$schd->registration,

'lat'=>$datac[3],

'lng'=>$datac[4],

'heading'=>$datac[5],

'alt'=>$datac[6],

'gs'=>$datac[7],

'depicao'=>$schd->depicao,

'depapt'=>$schd->depname,

'arricao'=>$schd->arricao,

'arrapt'=>$schd->arrname,

'route'=>'',

'distremain'=>$dist_remain,

'lastupdate'=>$datac[10],

'phasedetail'=>'No Solo: Embarque',

'online'=>'',

'client'=>'RogeroxAcars'

);

And after that I call the ACARSData::updateFlightData($datac[0], $macars);

The problem is that when I try to pass some other data again, it´s not updating on LIVE MAP.

Can you please help me with it? Thank you!

Regards,

Roger

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