20201029
This commit is contained in:
@ -31,7 +31,7 @@ VinceControl::~VinceControl()
|
|||||||
if (protools==NETTCP)
|
if (protools==NETTCP)
|
||||||
{
|
{
|
||||||
tcpServer->close();
|
tcpServer->close();
|
||||||
delete tcpServer;
|
//delete tcpServer;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ void VinceControl::initMotor(QString motornetid /*= "non"*/)
|
|||||||
SendCommandtoMotor(commonstr, motornetid);
|
SendCommandtoMotor(commonstr, motornetid);
|
||||||
GetCommonRetrun(buf, motornetid);
|
GetCommonRetrun(buf, motornetid);
|
||||||
//<2F><><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8>
|
//<2F><><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8>
|
||||||
commonstr = "cfg mcs=7\n";
|
commonstr = "cfg mcs=6\n";
|
||||||
SendCommandtoMotor(commonstr, motornetid);
|
SendCommandtoMotor(commonstr, motornetid);
|
||||||
GetCommonRetrun(buf, motornetid);
|
GetCommonRetrun(buf, motornetid);
|
||||||
|
|
||||||
@ -473,10 +473,10 @@ void VinceControl::initMotor(QString motornetid /*= "non"*/)
|
|||||||
SendCommandtoMotor(commonstr, motornetid);
|
SendCommandtoMotor(commonstr, motornetid);
|
||||||
GetCommonRetrun(buf, motornetid);
|
GetCommonRetrun(buf, motornetid);
|
||||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ4
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ4
|
||||||
commonstr = "cfg crn=4\n";
|
commonstr = "cfg crn=1.4\n";
|
||||||
SendCommandtoMotor(commonstr, motornetid);
|
SendCommandtoMotor(commonstr, motornetid);
|
||||||
GetCommonRetrun(buf, motornetid);
|
GetCommonRetrun(buf, motornetid);
|
||||||
commonstr = "cfg cra=4\n";
|
commonstr = "cfg cra=1.4\n";
|
||||||
SendCommandtoMotor(commonstr, motornetid);
|
SendCommandtoMotor(commonstr, motornetid);
|
||||||
GetCommonRetrun(buf, motornetid);
|
GetCommonRetrun(buf, motornetid);
|
||||||
|
|
||||||
@ -611,7 +611,7 @@ void VinceControl::onNewTcpClinetConnet()
|
|||||||
int speed = 200;
|
int speed = 200;
|
||||||
Speedlist.append(speed);
|
Speedlist.append(speed);
|
||||||
qint32 port = tcpSocket[tcpSocket.length() - 1]->peerPort();
|
qint32 port = tcpSocket[tcpSocket.length() - 1]->peerPort();
|
||||||
QString str11 = ip + " Connected The Port Number is "+QString::number(port)+"\n";
|
QString str11 = ip + " is Connected \n";
|
||||||
SendLog(str11);
|
SendLog(str11);
|
||||||
Handshacke(Motorlist[Motorlist.length()-1]);
|
Handshacke(Motorlist[Motorlist.length()-1]);
|
||||||
qDebug() << ip << ":" << port;
|
qDebug() << ip << ":" << port;
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<QTDIR>C:\Qt\Qt5.8.0\5.8\msvc2013_64</QTDIR>
|
<QTDIR>C:\Qt\Qt5.8.0\5.8\msvc2013_64</QTDIR>
|
||||||
<LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
<LocalDebuggerEnvironment>PATH="$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<QTDIR>C:\Qt\Qt5.8.0\5.8\msvc2013_64</QTDIR>
|
<QTDIR>C:\Qt\Qt5.8.0\5.8\msvc2013_64</QTDIR>
|
||||||
<LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
<LocalDebuggerEnvironment>PATH="$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b"$(QTDIR)\bin%3b$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LocalDebuggerEnvironment>PATH="$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
<LocalDebuggerEnvironment>PATH="$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
|
||||||
|
Reference in New Issue
Block a user