James142 Posted June 17, 2011 Report Posted June 17, 2011 Hello Everyone Does anyone know how to display the total distance of a route a pilot is flying in the acars map? Kindest Regards, James Quote
Moderators Kyle Posted June 17, 2011 Moderators Report Posted June 17, 2011 Hey James, I do remember doing that. If you take a look at the ACARS.tpl file and then read it though and I remember it does have examples of data to display. Quote
James142 Posted June 17, 2011 Author Report Posted June 17, 2011 Hey James, I do remember doing that. If you take a look at the ACARS.tpl file and then read it though and I remember it does have examples of data to display. Yeah but it doesn't give the code for displaying the total flight time? Quote
Moderators Kyle Posted June 17, 2011 Moderators Report Posted June 17, 2011 Try this, put it in your acars info table in acarsmap.tpl. I'm not sure which one you want. you said flight time or distance remaining? <%=flight.disremaining%> <%=flight.timeremaning%> EDIT Nevermind. I'm not sure what's the code for it. sorry. Quote
James142 Posted June 17, 2011 Author Report Posted June 17, 2011 Try this, put it in your acars info table in acarsmap.tpl. I'm not sure which one you want. you said flight time or distance remaining? <%=flight.disremaining%> <%=flight.timeremaning%> Thanks, but they are showing how long is left? Is it possible to show how long the flight that a pilot is flying? For example: Pilot john is flying flight no VMS001 which is EIDW - EGLL and a total distance of 243nm In the acars map I want it to show that his flight is 243nm long.. Quote
Kairon Posted July 15, 2011 Report Posted July 15, 2011 Better late than never! To view the total distance of the flight the pilot add: $c['totaldistance'] = OperationsData::getAirportDistance($c['depicao'], $c['arricao']); This file in core / modules / ACARS.php To view when he flown add: $depapt = OperationsData::GetAirportInfo($c['depicao']); $arrapt = OperationsData::GetAirportInfo($c['arricao']); $c['distflown'] = round(SchedulesData::distanceBetweenPoints($c['lat'], $c['lng'], $depapt->lat, $depapt->lng)); This is the core / modules / ACARS.php To use indicate the total miles use this: <%=flight.totaldistance%> To show how many miles the pilot flown use this: <%=flight.distflown%> On your tpl "acarsmap.tpl" Any questions just ask me, I'm an expert in editing acarsmap I am bad English ... Thumbs up on me! 1 Quote
James142 Posted July 15, 2011 Author Report Posted July 15, 2011 Better late than never! To view the total distance of the flight the pilot add: $c['totaldistance'] = OperationsData::getAirportDistance($c['depicao'], $c['arricao']); This file in core / modules / ACARS.php To view when he flown add: $depapt = OperationsData::GetAirportInfo($c['depicao']); $arrapt = OperationsData::GetAirportInfo($c['arricao']); $c['distflown'] = round(SchedulesData::distanceBetweenPoints($c['lat'], $c['lng'], $depapt->lat, $depapt->lng)); This is the core / modules / ACARS.php To use indicate the total miles use this: <%=flight.totaldistance%> To show how many miles the pilot flown use this: <%=flight.distflown%> On your tpl "acarsmap.tpl" Any questions just ask me, I'm an expert in editing acarsmap I am bad English ... Thumbs up on me! Thats great, thanks! +1 Quote
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.