Skip to content

Commit

Permalink
AP_VideoTX:add additional freq bands(RushFPV 3.3GHz)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvldz committed Aug 10, 2024
1 parent a014bcb commit b2d1e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libraries/AP_VideoTX/AP_VideoTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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] =
{
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_VideoTX/AP_VideoTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AP_VideoTX {
BAND_1G3_A,
BAND_1G3_B,
BAND_X,
BAND_3G3_A,
BAND_3G3_B,
MAX_BANDS
};

Expand Down

0 comments on commit b2d1e88

Please sign in to comment.