Check only for real runway ends
This commit is contained in:
parent
8a646490c8
commit
ba1fa6cb4f
@ -81,6 +81,16 @@ async function checkGroundnet(data) {
|
|||||||
var node2 = graph[element.end];
|
var node2 = graph[element.end];
|
||||||
node2[Number(element.start)] = 1;
|
node2[Number(element.start)] = 1;
|
||||||
});
|
});
|
||||||
|
var isLegitEnd = function(v) {
|
||||||
|
if( Object.keys(graph[v]).length <= 1 ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return Object.keys(graph[v]).filter( v => runwayNodes[v]).length === 0;
|
||||||
|
}
|
||||||
|
debugger;
|
||||||
|
runwayNodes = runwayNodes.filter(
|
||||||
|
(v, i) => isLegitEnd(v)
|
||||||
|
);
|
||||||
// Check if there is a route from every parking to every runway node
|
// Check if there is a route from every parking to every runway node
|
||||||
var okNodes = [];
|
var okNodes = [];
|
||||||
logger('info', graph);
|
logger('info', graph);
|
||||||
@ -142,9 +152,6 @@ async function checkGroundnet(data) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
var rogueHoldPoints = pushbackNodes.map(
|
var rogueHoldPoints = pushbackNodes.map(
|
||||||
|
|
||||||
//multiplePushbackRoutes.push();
|
|
||||||
|
|
||||||
id => {
|
id => {
|
||||||
var routes = noPushbackGraph[id];
|
var routes = noPushbackGraph[id];
|
||||||
if(Object.keys(routes).length<1)
|
if(Object.keys(routes).length<1)
|
||||||
|
Loading…
Reference in New Issue
Block a user