Correctly map TX gain from dB to register value.

This commit is contained in:
Jared Boone
2016-08-03 16:12:01 -07:00
parent 69173f5292
commit 45a1ccbc53
2 changed files with 23 additions and 3 deletions

View File

@@ -83,6 +83,14 @@ constexpr int8_t gain_db_step = 2;
/*************************************************************************/
namespace tx {
constexpr range_t<int8_t> gain_db_range { 0, 47 };
constexpr int8_t gain_db_step = 1;
}
/*************************************************************************/
namespace filter {
constexpr std::array<uint32_t, 16> bandwidths {
@@ -829,7 +837,7 @@ public:
void init();
void set_mode(const Mode mode);
void set_tx_vga_gain(const int_fast8_t value);
void set_tx_vga_gain(const int_fast8_t db);
void set_lna_gain(const int_fast8_t db);
void set_vga_gain(const int_fast8_t db);
void set_lpf_rf_bandwidth(const uint32_t bandwidth_minimum);