Modulation frequencies corrected

Removed_REF_marker
erikkaashoek 5 years ago
parent 6805c661c2
commit 1f643524e2

@ -69,8 +69,8 @@
#define __QUASI_PEAK__ // Add quasi peak average option #define __QUASI_PEAK__ // Add quasi peak average option
#define __REMOTE_DESKTOP__ // Add remote desktop option #define __REMOTE_DESKTOP__ // Add remote desktop option
#define __LISTEN__ #define __LISTEN__
//#define __LIMITS__
#ifdef TINYSA4 #ifdef TINYSA4
#define __LIMITS__
#define __HARMONIC__ #define __HARMONIC__
#else #else
#endif #endif

@ -2460,7 +2460,7 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
int *current_fm_modulation = 0; int *current_fm_modulation = 0;
if (MODE_OUTPUT(setting.mode)) { if (MODE_OUTPUT(setting.mode)) {
if (setting.modulation != MO_NONE && setting.modulation != MO_EXTERNAL && setting.modulation_frequency != 0) { if (setting.modulation != MO_NONE && setting.modulation != MO_EXTERNAL && setting.modulation_frequency != 0) {
modulation_delay = (1000000/ MODULATION_STEPS ) / setting.modulation_frequency; // 5 steps so 1MHz/5 modulation_delay = ((1000000-65000)/ MODULATION_STEPS ) / setting.modulation_frequency; // 5 steps so 1MHz/5
modulation_counter = 0; modulation_counter = 0;
if (setting.modulation == MO_AM) // -14 default if (setting.modulation == MO_AM) // -14 default
modulation_delay += config.cor_am; modulation_delay += config.cor_am;
@ -2795,8 +2795,8 @@ modulation_again:
#endif #endif
} }
#if 1 // No 72MHz spur avoidance yet #if 1
if (setting.mode == M_LOW && !in_selftest /* && !(SDU1.config->usbp->state == USB_ACTIVE) */ ) { // Avoid 72MHz spur if (setting.mode == M_LOW && !in_selftest) { // Avoid 48MHz spur
int set_below = false; int set_below = false;
#ifdef TINYSA4 #ifdef TINYSA4
if (lf < 40000000) { if (lf < 40000000) {
@ -2808,7 +2808,7 @@ modulation_again:
#endif #endif
if (lf > 40000000){ if (lf > 40000000){
uint32_t tf = lf; uint32_t tf = lf;
while (tf > 48000000) tf -= 48000000; while (tf > 48000000) tf -= 48000000; // Wrap between 0-48MHz
if (tf < 20000000 ) if (tf < 20000000 )
set_below = true; set_below = true;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.