Датчики объема. Адреса CAN + 0x80
This commit is contained in:
@@ -19,8 +19,6 @@ int TPL_CANS=0; //
|
||||
int tpl_cans=0;
|
||||
int cal_addr=0;
|
||||
|
||||
//int adcurr;
|
||||
|
||||
FLAG chk,sig;
|
||||
|
||||
int sens_type[SIZE];
|
||||
@@ -30,7 +28,7 @@ float Kt[2];
|
||||
|
||||
FILTERBAT def_FILTERBAT = DEF_FILTERBAT;
|
||||
FILTERBAT adc_filter[ADC_MAX];
|
||||
float out_filter[DAT_MAX];
|
||||
float out_filter[ADC_MAX];
|
||||
|
||||
unsigned int CanPowse=CANPOWSE,CanGO=0;
|
||||
unsigned int Caliber_time=0;
|
||||
@@ -145,8 +143,6 @@ void Init_sensors()
|
||||
okay.bit.Ignor=1;
|
||||
okay.bit.Imit=1;
|
||||
|
||||
for(i=0;i<TPL_MAX;i++) ADC_skip[i]=0;
|
||||
|
||||
for(i=0;i<SIZE;i++)
|
||||
{
|
||||
sens_type[i]=0;
|
||||
@@ -164,14 +160,7 @@ void Init_sensors()
|
||||
tpl_cans = TPL_CANS*2; cal_addr = tpl_cans; cans = TPL_CANS + 2;
|
||||
|
||||
for(i=0;i<tpl_cans;i++) sens_type[i] = TERMO_AD;
|
||||
|
||||
if(Mode==adr_FLT1 || Mode==adr_FLT2)
|
||||
{
|
||||
ADC_skip[1]=1;
|
||||
sens_type[2]=0;
|
||||
sens_type[3]=0;
|
||||
cans--;
|
||||
} }
|
||||
}
|
||||
|
||||
if(Desk==dsk_BKSD)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user