diff --git a/src/Asv.Drones.Gui.Api/CompatibilitySuppressions.xml b/src/Asv.Drones.Gui.Api/CompatibilitySuppressions.xml index 9797a802..88112665 100644 --- a/src/Asv.Drones.Gui.Api/CompatibilitySuppressions.xml +++ b/src/Asv.Drones.Gui.Api/CompatibilitySuppressions.xml @@ -2,15 +2,15 @@ - CP0006 - M:Asv.Drones.Gui.Api.IMavlinkDevicesService.GetRsgaByFullId(System.UInt16) + CP0007 + T:Asv.Drones.Gui.Api.HierarchicalStoreEntryViewModel lib/net8.0/Asv.Drones.Gui.Api.dll lib/net8.0/Asv.Drones.Gui.Api.dll true - CP0006 - P:Asv.Drones.Gui.Api.IMavlinkDevicesService.RsgaDevices + CP0007 + T:Asv.Drones.Gui.Api.HierarchicalStoreViewModel lib/net8.0/Asv.Drones.Gui.Api.dll lib/net8.0/Asv.Drones.Gui.Api.dll true diff --git a/src/Asv.Drones.Gui.Api/Services/Mavlink/IMavlinkDevicesService.cs b/src/Asv.Drones.Gui.Api/Services/Mavlink/IMavlinkDevicesService.cs index 25d021b1..2aaffe08 100644 --- a/src/Asv.Drones.Gui.Api/Services/Mavlink/IMavlinkDevicesService.cs +++ b/src/Asv.Drones.Gui.Api/Services/Mavlink/IMavlinkDevicesService.cs @@ -62,8 +62,6 @@ public interface IMavlinkDevicesService IAdsbClientDevice? GetAdsbVehicleByFullId(ushort id); IObservable> RfsaDevices { get; } IRfsaClientDevice? GetRfsaByFullId(ushort id); - IObservable> RsgaDevices { get; } - IRsgaClientDevice? GetRsgaByFullId(ushort id); } } \ No newline at end of file diff --git a/src/Asv.Drones.Gui.Api/Services/Mavlink/MavlinkHelper.cs b/src/Asv.Drones.Gui.Api/Services/Mavlink/MavlinkHelper.cs index da5eae09..fff284de 100644 --- a/src/Asv.Drones.Gui.Api/Services/Mavlink/MavlinkHelper.cs +++ b/src/Asv.Drones.Gui.Api/Services/Mavlink/MavlinkHelper.cs @@ -55,7 +55,6 @@ public static MaterialIconKind GetIcon(DeviceClass type) DeviceClass.GbsRtk => MaterialIconKind.RouterWireless, DeviceClass.Adsb => MaterialIconKind.Radar, DeviceClass.Rfsa => MaterialIconKind.Waveform, - DeviceClass.Rsga => MaterialIconKind.CellphoneWireless, _ => MaterialIconKind.HelpNetworkOutline, }; } diff --git a/src/Asv.Drones.Gui/Services/Mavlink/MavlinkDevicesService.cs b/src/Asv.Drones.Gui/Services/Mavlink/MavlinkDevicesService.cs index a8de7232..e605600c 100644 --- a/src/Asv.Drones.Gui/Services/Mavlink/MavlinkDevicesService.cs +++ b/src/Asv.Drones.Gui/Services/Mavlink/MavlinkDevicesService.cs @@ -164,17 +164,11 @@ public MavlinkDevicesService(IConfiguration config, IPacketSequenceCalculator se .Transform(CreateRfsaDevice) .DisposeMany() .RefCount(); - RsgaDevices = Devices - .Filter(d => d.Type == (MavType)Mavlink.V2.AsvRsga.MavType.MavTypeAsvRsga) - .Transform(CreateRsgaDevice) - .DisposeMany() - .RefCount(); AllDevices = Vehicles.Transform(x => (IClientDevice)x) .MergeChangeSets(BaseStations.Transform(x => (IClientDevice)x)) .MergeChangeSets(Payloads.Transform(x => (IClientDevice)x)) .MergeChangeSets(RfsaDevices.Transform(x => (IClientDevice)x)) - .MergeChangeSets(RsgaDevices.Transform(x => (IClientDevice)x)) .MergeChangeSets(AdsbDevices.Transform(x => (IClientDevice)x)); #endregion @@ -200,16 +194,6 @@ public MavlinkDevicesService(IConfiguration config, IPacketSequenceCalculator se - private IRsgaClientDevice CreateRsgaDevice(IMavlinkDevice device) - { - return new RsgaClientDevice(Router, new MavlinkClientIdentity - { - TargetSystemId = device.SystemId, - TargetComponentId = device.ComponentId, - SystemId = _systemId.Value, - ComponentId = _componentId.Value, - }, InternalGetConfig(c => c.Rsga), _sequenceCalculator, RxApp.MainThreadScheduler); - } private IRfsaClientDevice CreateRfsaDevice(IMavlinkDevice device) { return new RfsaClientDevice(Router, new MavlinkClientIdentity @@ -343,12 +327,6 @@ private string TryGetName(StatustextPacket pkt) return list.Items.FirstOrDefault(d => d.FullId == id); } - public IObservable> RsgaDevices { get; } - public IRsgaClientDevice? GetRsgaByFullId(ushort id) - { - using var autoDispose = RsgaDevices.BindToObservableList(out var list).Subscribe(); - return list.Items.FirstOrDefault(d => ((IClientDevice)d).FullId == id); - } private IVehicleClient? CreateVehicle(IMavlinkDevice device) { diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 71f0f3e5..90c21c51 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,13 +1,13 @@ 1.0.1 - 1.0.1 + 1.0.0-dev 1.0.0 11.0.6 2.0.2 1.0.1 2.0.5 - 3.10.0 + 3.9.3-dev 2.0.5 19.5.41 6.0.0