Transmitter config widget

Frequency manager duplicate alert
Tone sets
This commit is contained in:
furrtek
2017-01-30 13:10:30 +00:00
parent 0642d633c3
commit 688a012443
29 changed files with 759 additions and 203 deletions

View File

@@ -24,14 +24,14 @@
#include "ui_widget.hpp"
#include "ui_navigation.hpp"
#include "tonesets.hpp"
#include "encoders.hpp"
#include "portapack.hpp"
using namespace encoders;
#define CCIR_TONE_LENGTH (153600-1) // 1536000*0.1
#define CCIR_DELTA_COEF (43.691) // (65536*1024)/1536000
#define CCIR_SILENCE (614400-1) // 400ms
#define XY_TONE_LENGTH ((TONES_SAMPLERATE * 0.1) - 1) // 100ms
#define XY_SILENCE (TONES_SAMPLERATE * 0.4) // 400ms
struct bht_city {
std::string name;
@@ -39,25 +39,6 @@ struct bht_city {
bool recent;
};
const uint32_t ccir_deltas[16] = {
(uint32_t)(1981 * CCIR_DELTA_COEF),
(uint32_t)(1124 * CCIR_DELTA_COEF),
(uint32_t)(1197 * CCIR_DELTA_COEF),
(uint32_t)(1275 * CCIR_DELTA_COEF),
(uint32_t)(1358 * CCIR_DELTA_COEF),
(uint32_t)(1446 * CCIR_DELTA_COEF),
(uint32_t)(1540 * CCIR_DELTA_COEF),
(uint32_t)(1640 * CCIR_DELTA_COEF),
(uint32_t)(1747 * CCIR_DELTA_COEF),
(uint32_t)(1860 * CCIR_DELTA_COEF),
(uint32_t)(2400 * CCIR_DELTA_COEF),
(uint32_t)(930 * CCIR_DELTA_COEF),
(uint32_t)(2247 * CCIR_DELTA_COEF),
(uint32_t)(991 * CCIR_DELTA_COEF),
(uint32_t)(2110 * CCIR_DELTA_COEF),
(uint32_t)(1055 * CCIR_DELTA_COEF)
};
const rf::Frequency bht_freqs[7] = { 31325000, 31387500, 31437500, 31475000, 31687500, 31975000, 88000000 };
std::string gen_message_ep(uint8_t city_code, size_t family_code_ep, uint32_t relay_state_A, uint32_t relay_state_B);