Skip to content

Commit

Permalink
Merge pull request #5 from phdlee/version0.71
Browse files Browse the repository at this point in the history
Rollback tuneSWR (0.53 code)
  • Loading branch information
phdlee committed May 30, 2019
2 parents 137f95e + 162aaa8 commit 50a1a42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Src/analyzer/config/config.h
Expand Up @@ -19,7 +19,7 @@

#include "LCD.h"
#define AAVERSION "3.0d" //Must be 4 characters
#define AAVERSION_CECV "0.70" //Must be 4 characters
#define AAVERSION_CECV "0.71" //Must be 4 characters


//#define BAND_FMIN 500000ul //BAND_FMIN must be multiple 100000
Expand Down
14 changes: 7 additions & 7 deletions Src/analyzer/window/panvswr2.c
Expand Up @@ -1781,7 +1781,7 @@ void Tune_SWR_Proc(void){// ----------------------------------------------------

GPIO_PinState OUTGpio;
char str[20];
float vswrf, vswLogf;//,vswrf_old, SwrDiff;
float vswrf, vswLogf, vswrf_old, SwrDiff;
uint32_t width, vswLog=0, Timer;
uint32_t color1, vswr10, vsw_old, k=0;
TEXTBOX_CTX_t SWR1_ctx;
Expand Down Expand Up @@ -1856,12 +1856,12 @@ void Tune_SWR_Proc(void){// ----------------------------------------------------
k=0;
DSP_Measure(fxkHzs*1000, 1, 1, CFG_GetParam(CFG_PARAM_MEAS_NSCANS));
vswrf = DSP_CalcVSWR(DSP_MeasuredZ());
//SwrDiff=vswrf_old-vswrf;
//if(SwrDiff<0)SwrDiff=-SwrDiff;
SwrDiff=vswrf_old-vswrf;
if(SwrDiff<0)SwrDiff=-SwrDiff;

if((SwrDiff>0.01*vswrf)){// Difference more than 3 %
vswrf_old=vswrf;

//if((SwrDiff>0.01*vswrf)){// Difference more than 3 %
{
//vswrf_old=vswrf;
vswr10=10.0*vswrf;

if(SWRLimit==2){
Expand Down Expand Up @@ -1901,7 +1901,7 @@ void Tune_SWR_Proc(void){// ----------------------------------------------------
LCD_FillRect(LCD_MakePoint(width+1, 116), LCD_MakePoint(479,205), BackGrColor);
}
}
Sleep(100);//5
Sleep(1);//5
}
}

Expand Down

0 comments on commit 50a1a42

Please sign in to comment.