mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Dodana blokada odbioru danych (wpis w pliku eu07.ini) UWAGA! nie testowane bo nie mogę otworzyć projektu.
This commit is contained in:
@@ -174,7 +174,7 @@ bool MWDComm::Run() // wywo
|
|||||||
if(GetMWDState())
|
if(GetMWDState())
|
||||||
{
|
{
|
||||||
SendData();
|
SendData();
|
||||||
ReadData();
|
if (Global::bMWDInputDataEnable) ReadData();
|
||||||
return 1;
|
return 1;
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -552,6 +552,8 @@ void Global::ConfigParse(TQueryParserComp *qp, cParser *cp)
|
|||||||
if (bMWDdebugEnable) WriteLog("PortName " + AnsiString(iMWDBaudrate));
|
if (bMWDdebugEnable) WriteLog("PortName " + AnsiString(iMWDBaudrate));
|
||||||
}else if (str == AnsiString("mwdbreakenable")){ // czy w³¹czyæ obs³ugê hamulców
|
}else if (str == AnsiString("mwdbreakenable")){ // czy w³¹czyæ obs³ugê hamulców
|
||||||
bMWDBreakEnable = (GetNextSymbol().LowerCase() == AnsiString("yes"));
|
bMWDBreakEnable = (GetNextSymbol().LowerCase() == AnsiString("yes"));
|
||||||
|
}else if (str == AnsiString("mwdinputenable")){
|
||||||
|
bMWDInputDataEnable = (GetNextSymbol().LowerCase() == AnsiString("yes"));
|
||||||
}else if(str == AnsiString("mwdbreak")) // wartoϾ max dla potencjometru hamulca zasadniczego
|
}else if(str == AnsiString("mwdbreak")) // wartoϾ max dla potencjometru hamulca zasadniczego
|
||||||
{
|
{
|
||||||
i = GetNextSymbol().ToIntDef(-1); // numer wejœcia
|
i = GetNextSymbol().ToIntDef(-1); // numer wejœcia
|
||||||
|
|||||||
@@ -330,6 +330,7 @@ class Global
|
|||||||
static unsigned long int iMWDBaudrate;
|
static unsigned long int iMWDBaudrate;
|
||||||
static AnsiString sMWDPortId;
|
static AnsiString sMWDPortId;
|
||||||
static bool bMWDBreakEnable;
|
static bool bMWDBreakEnable;
|
||||||
|
static bool bMWDInputDataEnable;
|
||||||
static double fMWDAnalogCalib[4][3];
|
static double fMWDAnalogCalib[4][3];
|
||||||
static double fMWDzg[2];
|
static double fMWDzg[2];
|
||||||
static double fMWDpg[2];
|
static double fMWDpg[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user