mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T472, added a 1st version of glider category matching
This commit is contained in:
committed by
Mat Sutcliffe
parent
13de708944
commit
3a10483379
@@ -872,6 +872,8 @@ namespace BlackCore
|
||||
|
||||
if (setup.getMatchingMode().testFlag(CAircraftMatcherSetup::ByIcaoData))
|
||||
{
|
||||
// by airline/aircraft or by aircraft/airline depending on setup
|
||||
// family is also considered
|
||||
matchedModels = ifPossibleReduceByIcaoData(remoteAircraft, matchedModels, setup, reduced, log);
|
||||
}
|
||||
else if (log)
|
||||
@@ -891,6 +893,16 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
if (setup.useCategoryMatching())
|
||||
{
|
||||
matchedModels = categoryMatcher.reduceByCategories(modelSet, setup, remoteAircraft, reduced, shortLog, log);
|
||||
// ?? break here ??
|
||||
}
|
||||
else if (log)
|
||||
{
|
||||
CMatchingUtils::addLogDetailsToList(log, remoteAircraft, QStringLiteral("category matchig disabled"), getLogCategories());
|
||||
}
|
||||
|
||||
// if not yet reduced, reduce to VTOL
|
||||
if (!reduced && remoteAircraft.isVtol() && matchedModels.containsVtol() && mode.testFlag(CAircraftMatcherSetup::ByVtol))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user