From 0c2e9a061b478ca95a2fd0f1000332ea791a92dc Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 Mar 2024 15:11:18 +0200 Subject: [PATCH] AP_VideoTX:add additional freq bands(Band X) --- libraries/AP_VideoTX/AP_VideoTX.cpp | 7 ++++--- libraries/AP_VideoTX/AP_VideoTX.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AP_VideoTX/AP_VideoTX.cpp b/libraries/AP_VideoTX/AP_VideoTX.cpp index ac57aade83..2ccbe27996 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 + // @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 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"}; +const char * AP_VideoTX::band_names[] = {"A","B","E","F","R","L","1G3_A","1G3_B","X"}; const uint16_t AP_VideoTX::VIDEO_CHANNELS[AP_VideoTX::MAX_BANDS][VTX_MAX_CHANNELS] = { @@ -98,7 +98,8 @@ const uint16_t AP_VideoTX::VIDEO_CHANNELS[AP_VideoTX::MAX_BANDS][VTX_MAX_CHANNEL { 5658, 5695, 5732, 5769, 5806, 5843, 5880, 5917}, /* Race */ { 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 */ + { 1080, 1120, 1160, 1200, 1258, 1280, 1320, 1360}, /* Band 1G3_B */ + { 4990, 5020, 5050, 5080, 5110, 5140, 5170, 5200} /* Band X */ }; // 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 55a9b50366..a1321fb096 100644 --- a/libraries/AP_VideoTX/AP_VideoTX.h +++ b/libraries/AP_VideoTX/AP_VideoTX.h @@ -64,6 +64,7 @@ public: LOW_RACEBAND, BAND_1G3_A, BAND_1G3_B, + BAND_X, MAX_BANDS };