Commit 4f00c5a2 authored by Thomas Schlichter's avatar Thomas Schlichter

remove unused TO_IScalingInit (command line flag --TOII)

parent a0b3edd4
...@@ -199,7 +199,6 @@ extern uint16_t pathEndingTime; // time [sec] at which satellite is no more ...@@ -199,7 +199,6 @@ extern uint16_t pathEndingTime; // time [sec] at which satellite is no more
extern int uePosY; // y-axis coordinate [m] of UE position extern int uePosY; // y-axis coordinate [m] of UE position
extern double FO_PScaling; // P scaling factor of the PID controller for the Doppler compensation at UE side extern double FO_PScaling; // P scaling factor of the PID controller for the Doppler compensation at UE side
extern double FO_IScaling; // I scaling factor of the PID controller for the Doppler compensation at UE side extern double FO_IScaling; // I scaling factor of the PID controller for the Doppler compensation at UE side
extern int TO_IScalingInit; // initializing the accumulative part (I part) of the PI controller for the timing offset compensation
extern double TO_PScaling; extern double TO_PScaling;
extern double TO_IScaling; extern double TO_IScaling;
......
...@@ -586,7 +586,6 @@ int RFsim_DriftPerFrame = 0; ...@@ -586,7 +586,6 @@ int RFsim_DriftPerFrame = 0;
uint16_t pathStartingTime = 1050; uint16_t pathStartingTime = 1050;
uint16_t pathEndingTime = 1280; uint16_t pathEndingTime = 1280;
int uePosY = 0; int uePosY = 0;
int TO_IScalingInit = 0;
int commonDoppler = 0; // common doppler to be compensated at UE, but set here to avoid linking error int commonDoppler = 0; // common doppler to be compensated at UE, but set here to avoid linking error
int TO_init_rate = 0; int TO_init_rate = 0;
......
...@@ -445,7 +445,6 @@ double FO_IScaling = 0; // I scaling factor of the PID controller for the Dopp ...@@ -445,7 +445,6 @@ double FO_IScaling = 0; // I scaling factor of the PID controller for the Dopp
double TO_PScaling = 1; double TO_PScaling = 1;
double TO_IScaling = 0.1; double TO_IScaling = 0.1;
int TO_IScalingInit = 0;
int commonDoppler = 0; //421528; int commonDoppler = 0; //421528;
int TO_init_rate = 0; int TO_init_rate = 0;
......
...@@ -78,7 +78,6 @@ ...@@ -78,7 +78,6 @@
{"FOI" , CONFIG_HLP_FO_IScaling, 0, .dblptr=&FO_IScaling, .defdblval=0, TYPE_DOUBLE, 0}, \ {"FOI" , CONFIG_HLP_FO_IScaling, 0, .dblptr=&FO_IScaling, .defdblval=0, TYPE_DOUBLE, 0}, \
{"TOP" , CONFIG_HLP_TP_Scaling, 0, .dblptr=&TO_PScaling, .defdblval=1.0, TYPE_DOUBLE, 0}, \ {"TOP" , CONFIG_HLP_TP_Scaling, 0, .dblptr=&TO_PScaling, .defdblval=1.0, TYPE_DOUBLE, 0}, \
{"TOI" , CONFIG_HLP_TI_Scaling, 0, .dblptr=&TO_IScaling, .defdblval=0.1, TYPE_DOUBLE, 0}, \ {"TOI" , CONFIG_HLP_TI_Scaling, 0, .dblptr=&TO_IScaling, .defdblval=0.1, TYPE_DOUBLE, 0}, \
{"TOII", CONFIG_HLP_TO_Iinit, 0, .iptr=&TO_IScalingInit, .defintval=0, TYPE_INT, 0}, \
{"agc", CONFIG_HLP_AGC, PARAMFLAG_BOOL, .iptr=&(nrUE_params.enable_agc), .defintval=0, TYPE_INT, 0},\ {"agc", CONFIG_HLP_AGC, PARAMFLAG_BOOL, .iptr=&(nrUE_params.enable_agc), .defintval=0, TYPE_INT, 0},\
{"ulpc", CONFIG_HLP_ULPC, PARAMFLAG_BOOL, .iptr=&(nrUE_params.enable_ulpc), .defintval=0, TYPE_INT, 0},\ {"ulpc", CONFIG_HLP_ULPC, PARAMFLAG_BOOL, .iptr=&(nrUE_params.enable_ulpc), .defintval=0, TYPE_INT, 0},\
{"TOIR", CONFIG_HLP_TO_Init_Rate, 0, .iptr=&TO_init_rate, .defintval=0, TYPE_INT, 0}, \ {"TOIR", CONFIG_HLP_TO_Init_Rate, 0, .iptr=&TO_init_rate, .defintval=0, TYPE_INT, 0}, \
......
...@@ -97,12 +97,6 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms, ...@@ -97,12 +97,6 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms,
diff /= FrameDiff; //scaled by the frame number diff /= FrameDiff; //scaled by the frame number
frameLast = frame; //save the last frame number frameLast = frame; //save the last frame number
/* if ( (((diff < -4) || (diff > 4)) && (flagInitIScaling == 0)))
{
TO_I_Ctrl = TO_IScalingInit/TO_IScaling;
flagInitIScaling = 1;
} */
ue->TO_I_Ctrl += diff; //integral of all offsets ue->TO_I_Ctrl += diff; //integral of all offsets
ue->rx_offset = diff; ue->rx_offset = diff;
......
...@@ -92,7 +92,6 @@ double FO_IScaling = 0.5; // I scaling factor of the PID controller for the D ...@@ -92,7 +92,6 @@ double FO_IScaling = 0.5; // I scaling factor of the PID controller for the D
double TO_PScaling = 1; double TO_PScaling = 1;
double TO_IScaling = 0.1; double TO_IScaling = 0.1;
int TO_IScalingInit = 0;
int commonDoppler = 0; //421528; int commonDoppler = 0; //421528;
......
...@@ -86,7 +86,6 @@ double FO_IScaling = 0.5; // I scaling factor of the PID controller for the D ...@@ -86,7 +86,6 @@ double FO_IScaling = 0.5; // I scaling factor of the PID controller for the D
double TO_PScaling = 1; double TO_PScaling = 1;
double TO_IScaling = 0.1; double TO_IScaling = 0.1;
int TO_IScalingInit = 0;
int commonDoppler = 0; //421528; int commonDoppler = 0; //421528;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment