From 8bcb9c15a82abee29e417e417388efb783a957f1 Mon Sep 17 00:00:00 2001 From: Alexey <248997@gmail.com> Date: Fri, 27 Sep 2024 10:41:21 +0500 Subject: [PATCH] feat(rsga): add new modes --- .../Protocol/Messages/asv_audio.cs | 6 +- .../Protocol/Messages/asv_chart.cs | 7 +- src/Asv.Mavlink/Protocol/Messages/asv_gbs.cs | 8 ++- .../Protocol/Messages/asv_radio.cs | 8 ++- src/Asv.Mavlink/Protocol/Messages/asv_rfsa.cs | 11 +++- src/Asv.Mavlink/Protocol/Messages/asv_rsga.cs | 65 ++++++++++++++++--- src/Asv.Mavlink/Protocol/Messages/asv_sdr.cs | 6 +- .../Protocol/Messages/asv_table.cs | 11 +++- src/Asv.Mavlink/Protocol/Messages/common.cs | 6 +- src/Asv.Mavlink/Protocol/Messages/minimal.cs | 8 ++- src/Asv.Mavlink/Protocol/Messages/standard.cs | 11 +++- 11 files changed, 119 insertions(+), 28 deletions(-) diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_audio.cs b/src/Asv.Mavlink/Protocol/Messages/asv_audio.cs index 84a1b635..025db704 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_audio.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_audio.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,11 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; using System.Text; using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.AsvAudio diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_chart.cs b/src/Asv.Mavlink/Protocol/Messages/asv_chart.cs index 42832d7d..3626b36c 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_chart.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_chart.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,10 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.AsvChart diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_gbs.cs b/src/Asv.Mavlink/Protocol/Messages/asv_gbs.cs index d4c1b03e..7851ca98 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_gbs.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_gbs.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,9 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.AsvGbs diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_radio.cs b/src/Asv.Mavlink/Protocol/Messages/asv_radio.cs index bbe3afa0..0b5d1344 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_radio.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_radio.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,9 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; using Asv.Mavlink.V2.AsvAudio; diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_rfsa.cs b/src/Asv.Mavlink/Protocol/Messages/asv_rfsa.cs index 4bf60f8f..00ff631a 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_rfsa.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_rfsa.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,7 +20,14 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 + +using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; +using Asv.IO; namespace Asv.Mavlink.V2.AsvRfsa { diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_rsga.cs b/src/Asv.Mavlink/Protocol/Messages/asv_rsga.cs index c17f1b1a..d909d80a 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_rsga.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_rsga.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,9 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.AsvRsga @@ -52,7 +56,7 @@ public enum MavType:uint } /// - /// A mapping of RSGA modes for custom_mode field of heartbeat. + /// A mapping of RSGA modes for custom_mode[0-7] bits field of heartbeat Max 255 items. /// ASV_RSGA_CUSTOM_MODE /// public enum AsvRsgaCustomMode:uint @@ -63,30 +67,75 @@ public enum AsvRsgaCustomMode:uint /// AsvRsgaCustomModeIdle = 0, /// + /// Spectrum analyzer. + /// ASV_RSGA_CUSTOM_MODE_SPECTRUM + /// + AsvRsgaCustomModeSpectrum = 25, + /// /// Localizer generator mode. /// ASV_RSGA_CUSTOM_MODE_TX_LLZ /// - AsvRsgaCustomModeTxLlz = 1, + AsvRsgaCustomModeTxLlz = 50, /// /// Glide Path generator mode. /// ASV_RSGA_CUSTOM_MODE_TX_GP /// - AsvRsgaCustomModeTxGp = 2, + AsvRsgaCustomModeTxGp = 51, /// /// VOR generator mode. /// ASV_RSGA_CUSTOM_MODE_TX_VOR /// - AsvRsgaCustomModeTxVor = 3, + AsvRsgaCustomModeTxVor = 52, /// /// Marker generator mode. /// ASV_RSGA_CUSTOM_MODE_TX_MARKER /// - AsvRsgaCustomModeTxMarker = 4, + AsvRsgaCustomModeTxMarker = 53, /// /// DME beacon mode. + /// ASV_RSGA_CUSTOM_MODE_DME_REP + /// + AsvRsgaCustomModeDmeRep = 54, + /// + /// GBAS generator mode. + /// ASV_RSGA_CUSTOM_MODE_TX_GBAS + /// + AsvRsgaCustomModeTxGbas = 55, + /// + /// DME plane mode. /// ASV_RSGA_CUSTOM_MODE_DME_REQ /// - AsvRsgaCustomModeDmeReq = 5, + AsvRsgaCustomModeDmeReq = 74, + /// + /// Localizer analyzer mode. + /// ASV_RSGA_CUSTOM_MODE_RX_LLZ + /// + AsvRsgaCustomModeRxLlz = 75, + /// + /// Glide Path analyzer mode. + /// ASV_RSGA_CUSTOM_MODE_RX_GP + /// + AsvRsgaCustomModeRxGp = 76, + /// + /// VOR analyzer mode. + /// ASV_RSGA_CUSTOM_MODE_RX_VOR + /// + AsvRsgaCustomModeRxVor = 77, + /// + /// Marker analyzer mode. + /// ASV_RSGA_CUSTOM_MODE_RX_MARKER + /// + AsvRsgaCustomModeRxMarker = 78, + /// + /// GBAS analyzer mode. + /// ASV_RSGA_CUSTOM_MODE_RX_GBAS + /// + AsvRsgaCustomModeRxGbas = 79, + /// + /// Audio radio station mode. + /// ASV_RSGA_CUSTOM_MODE_RADIO + /// + AsvRsgaCustomModeRadio = 100, } /// diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_sdr.cs b/src/Asv.Mavlink/Protocol/Messages/asv_sdr.cs index 77e45630..0a8f985f 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_sdr.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_sdr.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,11 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; using System.Text; +using System.ComponentModel; using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.AsvSdr diff --git a/src/Asv.Mavlink/Protocol/Messages/asv_table.cs b/src/Asv.Mavlink/Protocol/Messages/asv_table.cs index e6491599..e33a46f2 100644 --- a/src/Asv.Mavlink/Protocol/Messages/asv_table.cs +++ b/src/Asv.Mavlink/Protocol/Messages/asv_table.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,7 +20,14 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 + +using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; +using Asv.IO; namespace Asv.Mavlink.V2.AsvTable { diff --git a/src/Asv.Mavlink/Protocol/Messages/common.cs b/src/Asv.Mavlink/Protocol/Messages/common.cs index ae40a5ef..84384048 100644 --- a/src/Asv.Mavlink/Protocol/Messages/common.cs +++ b/src/Asv.Mavlink/Protocol/Messages/common.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,10 +20,12 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; using Asv.Mavlink.V2.Minimal; using Asv.IO; diff --git a/src/Asv.Mavlink/Protocol/Messages/minimal.cs b/src/Asv.Mavlink/Protocol/Messages/minimal.cs index be473f3d..1c86e8b4 100644 --- a/src/Asv.Mavlink/Protocol/Messages/minimal.cs +++ b/src/Asv.Mavlink/Protocol/Messages/minimal.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,9 +20,13 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; using Asv.IO; namespace Asv.Mavlink.V2.Minimal diff --git a/src/Asv.Mavlink/Protocol/Messages/standard.cs b/src/Asv.Mavlink/Protocol/Messages/standard.cs index aedcbb75..6d6ca3b6 100644 --- a/src/Asv.Mavlink/Protocol/Messages/standard.cs +++ b/src/Asv.Mavlink/Protocol/Messages/standard.cs @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2023 asv-soft (https://github.com/asv-soft) +// Copyright (c) 2024 asv-soft (https://github.com/asv-soft) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -20,7 +20,14 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// This code was generate by tool Asv.Mavlink.Shell version 3.7.1+98c5c7a392002d9bb54507cd50df001a14c44120 +// This code was generate by tool Asv.Mavlink.Shell version 3.10.4+c1002429a625f2cf26c5bd2680700906e0b44d76 + +using System; +using System.Text; +using System.ComponentModel; +using Asv.Mavlink.V2.Common; +using Asv.Mavlink.V2.Minimal; +using Asv.IO; namespace Asv.Mavlink.V2.Standard {