From c854830702859cb1905b2a7602ccd0e38d36f758 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 7 Aug 2024 11:54:18 +0300 Subject: [PATCH] AP_VideoTX:add additional freq bands(RushFPV 3.3GHz) --- libraries/AP_VideoTX/AP_VideoTX.cpp | 8 +++++--- libraries/AP_VideoTX/AP_VideoTX.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libraries/AP_VideoTX/AP_VideoTX.cpp b/libraries/AP_VideoTX/AP_VideoTX.cpp index d0887080d60cb..3f50914c16da2 100644 --- a/libraries/AP_VideoTX/AP_VideoTX.cpp +++ b/libraries/AP_VideoTX/AP_VideoTX.cpp @@ -51,7 +51,7 @@ const AP_Param::GroupInfo AP_VideoTX::var_info[] = { // @DisplayName: Video Transmitter Band // @Description: Video Transmitter Band // @User: Standard - // @Values: 0:Band A,1:Band B,2:Band E,3:Airwave,4:RaceBand,5:Low RaceBand,6:1G3 Band A,7:1G3 Band B,8:Band X + // @Values: 0:Band A,1:Band B,2:Band E,3:Airwave,4:RaceBand,5:Low RaceBand,6:1G3 Band A,7:1G3 Band B,8:Band X,9:3G3 Band A,10:3G3 Band B AP_GROUPINFO("BAND", 4, AP_VideoTX, _band, 0), // @Param: FREQ @@ -87,7 +87,7 @@ const AP_Param::GroupInfo AP_VideoTX::var_info[] = { extern const AP_HAL::HAL& hal; -const char * AP_VideoTX::band_names[] = {"A","B","E","F","R","L","1G3_A","1G3_B","X"}; +const char * AP_VideoTX::band_names[] = {"A","B","E","F","R","L","1G3_A","1G3_B","X","3G3_A","3G3_B"}; const uint16_t AP_VideoTX::VIDEO_CHANNELS[AP_VideoTX::MAX_BANDS][VTX_MAX_CHANNELS] = { @@ -99,7 +99,9 @@ const uint16_t AP_VideoTX::VIDEO_CHANNELS[AP_VideoTX::MAX_BANDS][VTX_MAX_CHANNEL { 5621, 5584, 5547, 5510, 5473, 5436, 5399, 5362}, /* LO Race */ { 1080, 1120, 1160, 1200, 1240, 1280, 1320, 1360}, /* Band 1G3_A */ { 1080, 1120, 1160, 1200, 1258, 1280, 1320, 1360}, /* Band 1G3_B */ - { 4990, 5020, 5050, 5080, 5110, 5140, 5170, 5200} /* Band X */ + { 4990, 5020, 5050, 5080, 5110, 5140, 5170, 5200}, /* Band X */ + { 3330, 3350, 3370, 3390, 3410, 3430, 3450, 3470}, /* Band 3G3_A */ + { 3170, 3190, 3210, 3230, 3250, 3270, 3290, 3310} /* Band 3G3_B */ }; // mapping of power level to milliwatt to dbm diff --git a/libraries/AP_VideoTX/AP_VideoTX.h b/libraries/AP_VideoTX/AP_VideoTX.h index 67e7444937691..b544154abf6ef 100644 --- a/libraries/AP_VideoTX/AP_VideoTX.h +++ b/libraries/AP_VideoTX/AP_VideoTX.h @@ -65,6 +65,8 @@ class AP_VideoTX { BAND_1G3_A, BAND_1G3_B, BAND_X, + BAND_3G3_A, + BAND_3G3_B, MAX_BANDS };