Dmitry Kovalev
/
LGfiltr
forkd
Fork of LGstaandart by
Diff: pin.c
- Revision:
- 218:b4067cac75c0
- Parent:
- 214:4c70e452c491
- Child:
- 231:079835d508ef
--- a/pin.c Mon Sep 04 12:55:13 2017 +0000 +++ b/pin.c Mon Sep 25 10:35:56 2017 +0000 @@ -38,7 +38,7 @@ if (Gyro.Discharg) { - if(Gyro.LG_Type==1) {Spi.DAC_A=(unsigned int)(25000);}//Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1)); + 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; @@ -61,18 +61,15 @@ { if (Try<10) { + Spi.DAC_A-=300; Gyro.Discharg = StartDischarg << ShiftStart0; Gyro.BackLight = StartBackLight << ShiftStart0; TimeDischarg=0; Try++; } - } - - - + } else { - // if(!Gyro.LaserOn) { Gyro.LaserOn=1;