Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG by
Diff: main.c
- Revision:
- 139:1716152517aa
- Parent:
- 138:14a0c452cf32
- Child:
- 140:1fbf117fc120
--- a/main.c Sat Apr 23 15:00:20 2016 +0000
+++ b/main.c Mon Apr 25 10:30:21 2016 +0000
@@ -41,6 +41,7 @@
unsigned int secPuls;
float DACF, K_DAC;
int tempAMP;
+int temp;
//unsigned int *Add;
unsigned int status;
@@ -258,6 +259,21 @@
//Gyro.Frq-=65000;
Spi.DAC_B -= 200;
}
+ /*
+ if (Time[0] == 'Y') { // выдача технологическая
+ Log=1;
+ }*/
+
+
+
+ ////////////////////////////////////////////////////////////////////////////////
+ /*Запись лога настройки частоты*/
+ if (Time[0] == 'y') Log=1; //включит передачу
+ if (Time[0] == 'u') Stray_flag = 1; //LPC_TIM1->MR0+1000 вносим помеху
+ if (Time[0] == 'i') Stray_flag = 0; //LPC_TIM1->MR0 убираем помеху
+ if (Time[0] == 'o') Log=0; //Отключить передачу
+ ////////////////////////////////////////////////////////////////////////////////////
+
if (Time[0] == '8') { // выдача технологическая
sprintf(Time,"\r\n");
@@ -382,7 +398,21 @@
Gyro.VibroOutF = 0;
VibroOut(); //Чтение ADS_SPI
}
-//&Gyro.Firmware_Version
+
+ if( (Log == 1)&&(CountV31==0)) // установка ног в регисторе тоже подумать , зачем отделный флаг? наверно
+ {
+
+ // Gyro.Test_time1++;
+ /* if(Gyro.Test_time1==4)
+ {*/
+ sprintf((Time),"%d \r\n",LPC_TIM1->MR0);
+ WriteCon(Time);
+ // Gyro.Test_time++;
+ /* Gyro.Test_time1=0;
+ }*/
+
+ }
+ //&Gyro.Firmware_Version
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////Работа с Flash//////////////////////////////////////////////////////////////////
