crsf add 50mW

This commit is contained in:
Alexander van Saase 2021-08-31 09:46:56 +02:00
parent 86aa5cc84e
commit 32634866d8
2 changed files with 6 additions and 4 deletions

View File

@ -74,9 +74,9 @@ static float channelScale = CRSF_RC_CHANNEL_SCALE_LEGACY;
static timeUs_t lastRcFrameTimeUs = 0; static timeUs_t lastRcFrameTimeUs = 0;
#ifdef USE_RX_LINK_UPLINK_POWER #ifdef USE_RX_LINK_UPLINK_POWER
#define CRSF_UPLINK_POWER_LEVEL_MW_ITEMS_COUNT 8 #define CRSF_UPLINK_POWER_LEVEL_MW_ITEMS_COUNT 9
// Uplink power levels by uplinkTXPower expressed in mW (250 mW is from ver >=4.00) // Uplink power levels by uplinkTXPower expressed in mW (250 mW is from ver >=4.00, 50 mW in a future version and for ExpressLRS)
const uint16_t uplinkTXPowerStatesMw[CRSF_UPLINK_POWER_LEVEL_MW_ITEMS_COUNT] = {0, 10, 25, 100, 500, 1000, 2000, 250}; const uint16_t uplinkTXPowerStatesMw[CRSF_UPLINK_POWER_LEVEL_MW_ITEMS_COUNT] = {0, 10, 25, 100, 500, 1000, 2000, 250, 50};
#endif #endif
/* /*

View File

@ -256,7 +256,9 @@ typedef enum {
CRSF_RF_POWER_100_mW = 3, CRSF_RF_POWER_100_mW = 3,
CRSF_RF_POWER_500_mW = 4, CRSF_RF_POWER_500_mW = 4,
CRSF_RF_POWER_1000_mW = 5, CRSF_RF_POWER_1000_mW = 5,
CRSF_RF_POWER_2000_mW = 6 CRSF_RF_POWER_2000_mW = 6,
CRSF_RF_POWER_250_mW = 7,
CRSF_RF_POWER_50_mW = 8
} crsrRfPower_e; } crsrRfPower_e;
/* /*