123
Fork of LG by
Diff: Dither_Reg.c
- Revision:
- 112:4a96133a1311
- Parent:
- 21:bc8c1cec3da6
- Child:
- 129:406995a91322
diff -r 8ee1ef722ba7 -r 4a96133a1311 Dither_Reg.c --- a/Dither_Reg.c Mon Apr 04 03:21:25 2016 +0000 +++ b/Dither_Reg.c Mon Apr 04 11:09:56 2016 +0000 @@ -175,7 +175,7 @@ ** Returned value: None ** ******************************************************************************/ -void clc_Dith_regulator(void) +/*void clc_Dith_regulator(void) { // static int smooth=0, buf[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0}, i = 0; // int ph_error; @@ -233,7 +233,7 @@ if ((Output.Str.T_Vibro > Device_blk.Str.VB_Nmax) || (Output.Str.T_Vibro < Device_blk.Str.VB_Nmin)) { Valid_Data |= DITH_FREQ_ERROR; } -} // clc_Dith_regulator +} // clc_Dith_regulator*/ /****************************************************************************** ** Function name: clc_OutFreq_regulator @@ -244,11 +244,11 @@ ** Returned value: None ** ******************************************************************************/ -void clc_OutFreq_regulator(void) +/*void clc_OutFreq_regulator(void) { static int out_freq_sum = 0; static int temp; - /* + if (Dif_Curr_Vib > 0) //e. angular speed > 0 //r.скорость положительна { if (RI_diff > 0) @@ -263,7 +263,7 @@ else out_freq_sum -= (Dif_Curr_Vib + (int)(Dif_Curr_32 >> SHIFT_TO_FRACT)); } - */ + if(Dif_Curr_Vib>0) out_freq_sum += Dif_Curr_Vib; else @@ -307,7 +307,7 @@ //r. длительности импульсов вибропривода } -} // clc_OutFreq_regulator +} */// clc_OutFreq_regulator //e. noise regulator //r. система электронного ошумления вибропривода /*r.