![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: Command.c
- Revision:
- 198:fb22ba6aad54
- Parent:
- 197:7a05523bf588
- Child:
- 199:2728719cdc64
--- a/Command.c Wed Oct 19 10:55:05 2016 +0000 +++ b/Command.c Thu Oct 20 09:29:05 2016 +0000 @@ -404,7 +404,7 @@ BuffTemp[13]=(Temp >> 0) & 0xff;//// - Temp = (unsigned int)((7680000*16/(Gyro.Frq>>12))); + Temp = (unsigned int)((7440000*16/(Gyro.Frq>>12))); BuffTemp[14] = (Temp >> 8) & 0xff; BuffTemp[15] = (Temp >> 0) & 0xff; @@ -470,7 +470,7 @@ temp1 =((BuffTemp[4]<<8) | BuffTemp[5]); temp1=temp1&0xFFFF; (unsigned int)((7680000*16/(Gyro.Frq>>12))); - Gyro.Frq=(122880000/temp1)<<12; + Gyro.Frq=(119200000/temp1)<<12; temp2 =((BuffTemp[6]<<8) | BuffTemp[7]); temp2=temp2&0xFFFF; @@ -976,12 +976,12 @@ sprintf((Time),"PLC_DeltaADD <%07d> ", Gyro.PLC_DeltaADD); WriteCon(Time); } if (Time[0] == 'V') { // выдача технологическая - Spi.DAC_B += 200; + Spi.DAC_B += 300; /* sprintf(Time,"%d\r\n", Spi.DAC_B); WriteCon(Time);*/ } if (Time[0] == 'v') { // выдача технологическая - Spi.DAC_B -= 200; + Spi.DAC_B -= 300; /* sprintf(Time,"%d\r\n", Spi.DAC_B); WriteCon(Time);*/ }