![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: pin.c
- Revision:
- 231:079835d508ef
- Parent:
- 218:b4067cac75c0
diff -r 8f7eeb47ca51 -r 079835d508ef pin.c --- a/pin.c Tue Jan 09 13:25:45 2018 +0000 +++ b/pin.c Thu Jan 25 13:59:43 2018 +0000 @@ -38,8 +38,8 @@ if (Gyro.Discharg) { - if(Gyro.LG_Type==1) {/*Spi.DAC_A=(unsigned int)(26000);*/}//Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1)); - else Spi.DAC_A =(((int)(GyroP.Str.DAC_current_Start*0.98+0x7fff) & 0xffff)); + /*if(Gyro.LG_Type==1) {Spi.DAC_A=(unsigned int)(26000);}//Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1)); + else Spi.DAC_A =(((int)(GyroP.Str.DAC_current_Start*0.98+0x7fff) & 0xffff));*/ Gyro.Discharg = Gyro.Discharg >> 1; if(!Gyro.LaserOn) @@ -79,8 +79,18 @@ } TimeDischarg=5; Try=0; - if(Gyro.LG_Type==1){}// Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1)); - else Spi.DAC_A = ((((int)(GyroP.Str.DAC_current_Work+0x7fff) & 0xffff)+22544)*0.65); + SumDelta=0; + Gyro.PLC_Eror_count=0; + HFOSumDelta=0; + HFOregul=0; + /* for(int q=0; q<64; q++) + { + AVR_PLC_ERR[q]=0; + + } + ERRPLC=0;*/ + /* if(Gyro.LG_Type==1){}// Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1)); + else Spi.DAC_A = ((((int)(GyroP.Str.DAC_current_Work+0x7fff) & 0xffff)+22544)*0.65);*/ } } }