fork

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
210:b02fa166315d
Parent:
209:224e7331a061
Child:
211:ac8251b067d2
--- a/Global.c	Thu Apr 13 14:14:45 2017 +0000
+++ b/Global.c	Mon Apr 24 05:43:54 2017 +0000
@@ -94,7 +94,7 @@
     GyroP.Str.ParamMod=0;
     
   ReadFlash ();
-    // GyroP.Str.ParamMod=0;
+   //  GyroP.Str.ParamMod=0;
     if(GyroP.Str.ParamMod)
     {
                 Gyro.My_Addres			= GyroP.Str.My_Addres; 								 //  Gyro.My_Addres			= 0; 
@@ -113,7 +113,7 @@
     		    Gyro.AmpSpeed 			= GyroP.Str.AmpSpeed;
     			Gyro.AmpPerDel			= GyroP.Str.AmpPerDel;
     			temp=((GyroP.Str.VB_Fdf_Hi<<16) | GyroP.Str.VB_Fdf_Lo);
-    			temp=temp/18.2;
+    			temp=temp*20;
     			Gyro.AmpTarget=(unsigned int)(temp);
     			Gyro.AmpPerMin 			= GyroP.Str.AmpPerMin;
     			Gyro.AmpPerMax 			= GyroP.Str.AmpPerMax;