From d14fc3805c5b3c501e9c71f77fef780a5067dda7 Mon Sep 17 00:00:00 2001 From: Jacopo Cassinis <12469744+RAD750@users.noreply.github.com> Date: Sat, 10 Dec 2022 13:43:14 +0100 Subject: [PATCH 1/2] Added MMDS converter offset preset --- core/src/gui/menus/source.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/gui/menus/source.cpp b/core/src/gui/menus/source.cpp index 27f362c0..b9f21e42 100644 --- a/core/src/gui/menus/source.cpp +++ b/core/src/gui/menus/source.cpp @@ -31,6 +31,7 @@ namespace sourcemenu { OFFSET_MODE_DK5AV_XB, OFFSET_MODE_KU_LNB_9750, OFFSET_MODE_KU_LNB_10700, + OFFSET_MODE_MMDS_CONVERTER_1998, _OFFSET_MODE_COUNT }; @@ -40,7 +41,8 @@ namespace sourcemenu { "Ham-It-Up\0" "DK5AV X-Band\0" "Ku LNB (9750MHz)\0" - "Ku LNB (10700MHz)\0"; + "Ku LNB (10700MHz)\0" + "MMDS Converter (1998MHz)\0"; const char* decimationStages = "None\0" "2\0" @@ -67,6 +69,9 @@ namespace sourcemenu { else if (offsetMode == OFFSET_MODE_KU_LNB_10700) { effectiveOffset = -10700000000; } // 10.7GHz Down-conversion + else if (offsetMode == OFFSET_MODE_MMDS_CONVERTER_1998) { + effectiveOffset = -1998000000; + } else { effectiveOffset = 0; } From 3d4c7550bec8a474e6b3ade338f2cd85c555fe68 Mon Sep 17 00:00:00 2001 From: Jacopo Cassinis <12469744+RAD750@users.noreply.github.com> Date: Sat, 10 Dec 2022 20:11:49 +0100 Subject: [PATCH 2/2] fixed --- core/src/gui/menus/source.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/gui/menus/source.cpp b/core/src/gui/menus/source.cpp index b9f21e42..da8285ac 100644 --- a/core/src/gui/menus/source.cpp +++ b/core/src/gui/menus/source.cpp @@ -28,10 +28,10 @@ namespace sourcemenu { OFFSET_MODE_CUSTOM, OFFSET_MODE_SPYVERTER, OFFSET_MODE_HAM_IT_UP, + OFFSET_MODE_MMDS_SB_1998, OFFSET_MODE_DK5AV_XB, OFFSET_MODE_KU_LNB_9750, OFFSET_MODE_KU_LNB_10700, - OFFSET_MODE_MMDS_CONVERTER_1998, _OFFSET_MODE_COUNT }; @@ -39,10 +39,10 @@ namespace sourcemenu { "Custom\0" "SpyVerter\0" "Ham-It-Up\0" + "MMDS S-band (1998MHz)\0" "DK5AV X-Band\0" "Ku LNB (9750MHz)\0" - "Ku LNB (10700MHz)\0" - "MMDS Converter (1998MHz)\0"; + "Ku LNB (10700MHz)\0"; const char* decimationStages = "None\0" "2\0" @@ -60,6 +60,9 @@ namespace sourcemenu { else if (offsetMode == OFFSET_MODE_HAM_IT_UP) { effectiveOffset = 125000000; } // 125MHz Up-conversion + else if (offsetMode == OFFSET_MODE_MMDS_SB_1998) { + effectiveOffset = -1998000000; + } // 1.998GHz Down-conversion else if (offsetMode == OFFSET_MODE_DK5AV_XB) { effectiveOffset = -6800000000; } // 6.8GHz Down-conversion @@ -69,9 +72,6 @@ namespace sourcemenu { else if (offsetMode == OFFSET_MODE_KU_LNB_10700) { effectiveOffset = -10700000000; } // 10.7GHz Down-conversion - else if (offsetMode == OFFSET_MODE_MMDS_CONVERTER_1998) { - effectiveOffset = -1998000000; - } else { effectiveOffset = 0; }