Skip to content

Commit

Permalink
feat(mavlink): add export attributes for IPacketPrinterHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
asv-soft-u03 committed Oct 9, 2024
1 parent 4624c85 commit 3312668
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/Asv.Mavlink/Asv.Mavlink.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<PackageReference Include="Asv.Common" Version="$(AsvCommonVersion)" />
<PackageReference Include="Asv.IO" Version="$(AsvCommonVersion)" />
<PackageReference Include="DynamicData" Version="$(DynamicDataVersion)" />
<PackageReference Include="System.Composition" Version="9.0.0-rc.2.24473.5" />
<PackageReference Include="ZLogger" Version="$(ZLoggerVersion)" />
<PackageReference Include="Microsoft.DotNet.ApiCompat.Task" Version="$(ApiCompatVersion)" >
<!--using api compatibility purely as a development harness-->
Expand Down
3 changes: 2 additions & 1 deletion src/Asv.Mavlink/PacketPrinter/DefaultPacketHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using Newtonsoft.Json;
using System.Composition;

namespace Asv.Mavlink;

[Export(typeof(IPacketPrinterHandler))]
public class DefaultPacketHandler : IPacketPrinterHandler
{
public int Order => int.MaxValue;
Expand Down
3 changes: 2 additions & 1 deletion src/Asv.Mavlink/PacketPrinter/FtpPacketHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System.Composition;
using System.Text;
using Asv.Mavlink.V2.Common;
using Newtonsoft.Json;

namespace Asv.Mavlink;

[Export(typeof(IPacketPrinterHandler))]
public class FtpPacketHandler: IPacketPrinterHandler
{
public int Order => int.MaxValue/2;
Expand Down
3 changes: 2 additions & 1 deletion src/Asv.Mavlink/PacketPrinter/ParamSetPacketHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
using System.Composition;
using System.Diagnostics;
using Asv.Mavlink.V2.Common;

namespace Asv.Mavlink;

[Export(typeof(IPacketPrinterHandler))]
public class ParamSetPacketHandler : IPacketPrinterHandler
{
readonly IMavParamEncoding _cstyleEncoding = new MavParamCStyleEncoding();
Expand Down
3 changes: 2 additions & 1 deletion src/Asv.Mavlink/PacketPrinter/ParamValuePacketHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
using System.Composition;
using System.Diagnostics;
using Asv.Mavlink.V2.Common;

namespace Asv.Mavlink;

[Export(typeof(IPacketPrinterHandler))]
public class ParamValuePacketHandler : IPacketPrinterHandler
{
readonly IMavParamEncoding _cstyleEncoding = new MavParamCStyleEncoding();
Expand Down
3 changes: 2 additions & 1 deletion src/Asv.Mavlink/PacketPrinter/StatusTextHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
using System.Composition;
using System.Text;
using Asv.Mavlink.V2.Common;

namespace Asv.Mavlink;

[Export(typeof(IPacketPrinterHandler))]
public class StatusTextHandler : IPacketPrinterHandler
{
public int Order => int.MaxValue/2;
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<ProductVersion>3.10.4</ProductVersion>
<ProductPrevVersion>3.10.3</ProductPrevVersion>
<ProductVersion>3.10.4-dev.7</ProductVersion>
<ProductPrevVersion>3.10.4-dev.6</ProductPrevVersion>

<AsvCommonVersion>3.0.0-dev.4</AsvCommonVersion>
<ZLoggerVersion>2.5.5</ZLoggerVersion>
Expand Down

0 comments on commit 3312668

Please sign in to comment.