mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T129, use all vatlib VFR types with flight plan value object
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3d541a8dd1
commit
8df801e7cc
@@ -1070,10 +1070,11 @@ namespace BlackCore
|
||||
CFlightPlan::FlightRules rules = CFlightPlan::VFR;
|
||||
switch (fp->flightType)
|
||||
{
|
||||
default:
|
||||
case vatFlightTypeVFR: rules = CFlightPlan::VFR; break;
|
||||
case vatFlightTypeIFR: rules = CFlightPlan::IFR; break;
|
||||
// case Cvatlib_Network::fpRuleType_SVFR: rules = CFlightPlan::SVFR; break;
|
||||
case vatFlightTypeVFR: rules = CFlightPlan::VFR; break;
|
||||
case vatFlightTypeIFR: rules = CFlightPlan::IFR; break;
|
||||
case vatFlightTypeDVFR: rules = CFlightPlan::DVFR; break;
|
||||
case vatFlightTypeSVFR: rules = CFlightPlan::SVFR; break;
|
||||
default: rules = CFlightPlan::UNKNOWN; break;
|
||||
}
|
||||
|
||||
auto *self = cbvar_cast(cbvar);
|
||||
|
||||
Reference in New Issue
Block a user