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; }
private SupportedFirmwareVersion GetFirmwareVersionToUse() { SupportedFirmwareVersion firmwareVersionToUse; if (droneConfig.UseSpecificFirmwareVersion) { firmwareVersionToUse = droneConfig.FirmwareVersion; } else { DroneFirmwareVersion droneVersion = new DroneFirmwareVersion(internalDroneConfiguration.GeneralConfiguration.SoftwareVersion); firmwareVersionToUse = droneVersion.GetSupportedFirmwareVersion(); } return(firmwareVersionToUse); }