forkd

Dependencies:   mbed

Fork of LG2 by Dmitry Kovalev

Revision:
214:4c70e452c491
Parent:
213:9953db9543d6
Child:
218:b4067cac75c0
--- a/pin.c	Wed Jul 26 13:24:39 2017 +0000
+++ b/pin.c	Wed Aug 16 09:00:25 2017 +0000
@@ -38,7 +38,7 @@
       
      if (Gyro.Discharg)
       {   
-          if(Gyro.LG_Type==1) {Spi.DAC_A =19500;}//Spi.DAC_A = (unsigned int)(32767-(GyroP.Str.DAC_current_Work>>1));
+          if(Gyro.LG_Type==1) {Spi.DAC_A=(unsigned int)(25000);}//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;