public VersionBetweenAttribute(VersionState minVersionState, String minVersionString, VersionState maxVersionState, String maxVersionString)
        {
            this.minVersion = new DroneFirmwareVersion(minVersionString);
            this.minVersionState = minVersionState;

            this.maxVersion = new DroneFirmwareVersion(maxVersionString);
            this.maxVersionState = maxVersionState;
        }
        public VersionBetweenAttribute(VersionState minVersionState, String minVersionString, VersionState maxVersionState, String maxVersionString)
        {
            this.minVersion      = new DroneFirmwareVersion(minVersionString);
            this.minVersionState = minVersionState;

            this.maxVersion      = new DroneFirmwareVersion(maxVersionString);
            this.maxVersionState = maxVersionState;
        }
Esempio n. 3
0
        private SupportedFirmwareVersion GetFirmwareVersionToUse()
        {
            SupportedFirmwareVersion firmwareVersionToUse;

            if (droneConfig.UseSpecificFirmwareVersion)
            {
                firmwareVersionToUse = droneConfig.FirmwareVersion;
            }
            else
            {
                DroneFirmwareVersion droneVersion = new DroneFirmwareVersion(internalDroneConfiguration.GeneralConfiguration.SoftwareVersion);
                firmwareVersionToUse = droneVersion.GetSupportedFirmwareVersion();
            }

            return(firmwareVersionToUse);
        }